|
Karsten Hopp |
71f227 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
71f227 |
Subject: Patch 7.3.282
|
|
Karsten Hopp |
71f227 |
Fcc: outbox
|
|
Karsten Hopp |
71f227 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
71f227 |
Mime-Version: 1.0
|
|
Karsten Hopp |
71f227 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
71f227 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
71f227 |
------------
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
Patch 7.3.282
|
|
Karsten Hopp |
71f227 |
Problem: When using input() and :echo in a loop the displayed text is
|
|
Karsten Hopp |
71f227 |
incorrect. (Benjamin Fritz)
|
|
Karsten Hopp |
71f227 |
Solution: Only restore the cursor position when there is a command line.
|
|
Karsten Hopp |
71f227 |
(Ben Schmidt)
|
|
Karsten Hopp |
71f227 |
Files: src/ex_getln.c
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
*** ../vim-7.3.281/src/ex_getln.c 2011-07-27 17:58:42.000000000 +0200
|
|
Karsten Hopp |
71f227 |
--- src/ex_getln.c 2011-08-17 15:57:39.000000000 +0200
|
|
Karsten Hopp |
71f227 |
***************
|
|
Karsten Hopp |
71f227 |
*** 1969,1976 ****
|
|
Karsten Hopp |
71f227 |
# endif
|
|
Karsten Hopp |
71f227 |
s = getcmdline(firstc, 1L, 0);
|
|
Karsten Hopp |
71f227 |
restore_cmdline(&save_ccline);
|
|
Karsten Hopp |
71f227 |
! /* Restore msg_col, the prompt from input() may have changed it. */
|
|
Karsten Hopp |
71f227 |
! msg_col = msg_col_save;
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
return s;
|
|
Karsten Hopp |
71f227 |
}
|
|
Karsten Hopp |
71f227 |
--- 1969,1980 ----
|
|
Karsten Hopp |
71f227 |
# endif
|
|
Karsten Hopp |
71f227 |
s = getcmdline(firstc, 1L, 0);
|
|
Karsten Hopp |
71f227 |
restore_cmdline(&save_ccline);
|
|
Karsten Hopp |
71f227 |
! /* Restore msg_col, the prompt from input() may have changed it.
|
|
Karsten Hopp |
71f227 |
! * But only if called recursively and the commandline is therefore being
|
|
Karsten Hopp |
71f227 |
! * restored to an old one; if not, the input() prompt stays on the screen,
|
|
Karsten Hopp |
71f227 |
! * so we need its modified msg_col left intact. */
|
|
Karsten Hopp |
71f227 |
! if (ccline.cmdbuff != NULL)
|
|
Karsten Hopp |
71f227 |
! msg_col = msg_col_save;
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
return s;
|
|
Karsten Hopp |
71f227 |
}
|
|
Karsten Hopp |
71f227 |
*** ../vim-7.3.281/src/version.c 2011-08-17 15:23:16.000000000 +0200
|
|
Karsten Hopp |
71f227 |
--- src/version.c 2011-08-17 16:24:04.000000000 +0200
|
|
Karsten Hopp |
71f227 |
***************
|
|
Karsten Hopp |
71f227 |
*** 711,712 ****
|
|
Karsten Hopp |
71f227 |
--- 711,714 ----
|
|
Karsten Hopp |
71f227 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
71f227 |
+ /**/
|
|
Karsten Hopp |
71f227 |
+ 282,
|
|
Karsten Hopp |
71f227 |
/**/
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
--
|
|
Karsten Hopp |
71f227 |
Why don't cannibals eat clowns?
|
|
Karsten Hopp |
71f227 |
Because they taste funny.
|
|
Karsten Hopp |
71f227 |
|
|
Karsten Hopp |
71f227 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
71f227 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
71f227 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
71f227 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|