|
Karsten Hopp |
20d8e8 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
20d8e8 |
Subject: Patch 7.3.868
|
|
Karsten Hopp |
20d8e8 |
Fcc: outbox
|
|
Karsten Hopp |
20d8e8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
20d8e8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
20d8e8 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
20d8e8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
20d8e8 |
------------
|
|
Karsten Hopp |
20d8e8 |
|
|
Karsten Hopp |
20d8e8 |
Patch 7.3.868
|
|
Karsten Hopp |
20d8e8 |
Problem: When at the hit-return prompt and using "k" while no text has
|
|
Karsten Hopp |
20d8e8 |
scrolled off screen, then using "j", an empty line is displayed.
|
|
Karsten Hopp |
20d8e8 |
Solution: Only act on "k" when text scrolled off screen. Also accept
|
|
Karsten Hopp |
20d8e8 |
page-up and page-down. (cptstubing)
|
|
Karsten Hopp |
20d8e8 |
Files: src/message.c
|
|
Karsten Hopp |
20d8e8 |
|
|
Karsten Hopp |
20d8e8 |
|
|
Karsten Hopp |
20d8e8 |
*** ../vim-7.3.867/src/message.c 2012-11-14 18:10:49.000000000 +0100
|
|
Karsten Hopp |
20d8e8 |
--- src/message.c 2013-03-19 13:50:16.000000000 +0100
|
|
Karsten Hopp |
20d8e8 |
***************
|
|
Karsten Hopp |
20d8e8 |
*** 976,985 ****
|
|
Karsten Hopp |
20d8e8 |
*/
|
|
Karsten Hopp |
20d8e8 |
if (p_more && !p_cp)
|
|
Karsten Hopp |
20d8e8 |
{
|
|
Karsten Hopp |
20d8e8 |
! if (c == 'b' || c == 'k' || c == 'u' || c == 'g' || c == K_UP)
|
|
Karsten Hopp |
20d8e8 |
{
|
|
Karsten Hopp |
20d8e8 |
! /* scroll back to show older messages */
|
|
Karsten Hopp |
20d8e8 |
! do_more_prompt(c);
|
|
Karsten Hopp |
20d8e8 |
if (quit_more)
|
|
Karsten Hopp |
20d8e8 |
{
|
|
Karsten Hopp |
20d8e8 |
c = CAR; /* just pretend CR was hit */
|
|
Karsten Hopp |
20d8e8 |
--- 976,997 ----
|
|
Karsten Hopp |
20d8e8 |
*/
|
|
Karsten Hopp |
20d8e8 |
if (p_more && !p_cp)
|
|
Karsten Hopp |
20d8e8 |
{
|
|
Karsten Hopp |
20d8e8 |
! if (c == 'b' || c == 'k' || c == 'u' || c == 'g'
|
|
Karsten Hopp |
20d8e8 |
! || c == K_UP || c == K_PAGEUP)
|
|
Karsten Hopp |
20d8e8 |
{
|
|
Karsten Hopp |
20d8e8 |
! if (msg_scrolled > Rows)
|
|
Karsten Hopp |
20d8e8 |
! /* scroll back to show older messages */
|
|
Karsten Hopp |
20d8e8 |
! do_more_prompt(c);
|
|
Karsten Hopp |
20d8e8 |
! else
|
|
Karsten Hopp |
20d8e8 |
! {
|
|
Karsten Hopp |
20d8e8 |
! msg_didout = FALSE;
|
|
Karsten Hopp |
20d8e8 |
! c = K_IGNORE;
|
|
Karsten Hopp |
20d8e8 |
! msg_col =
|
|
Karsten Hopp |
20d8e8 |
! #ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
20d8e8 |
! cmdmsg_rl ? Columns - 1 :
|
|
Karsten Hopp |
20d8e8 |
! #endif
|
|
Karsten Hopp |
20d8e8 |
! 0;
|
|
Karsten Hopp |
20d8e8 |
! }
|
|
Karsten Hopp |
20d8e8 |
if (quit_more)
|
|
Karsten Hopp |
20d8e8 |
{
|
|
Karsten Hopp |
20d8e8 |
c = CAR; /* just pretend CR was hit */
|
|
Karsten Hopp |
20d8e8 |
***************
|
|
Karsten Hopp |
20d8e8 |
*** 993,999 ****
|
|
Karsten Hopp |
20d8e8 |
}
|
|
Karsten Hopp |
20d8e8 |
}
|
|
Karsten Hopp |
20d8e8 |
else if (msg_scrolled > Rows - 2
|
|
Karsten Hopp |
20d8e8 |
! && (c == 'j' || c == K_DOWN || c == 'd' || c == 'f'))
|
|
Karsten Hopp |
20d8e8 |
c = K_IGNORE;
|
|
Karsten Hopp |
20d8e8 |
}
|
|
Karsten Hopp |
20d8e8 |
} while ((had_got_int && c == Ctrl_C)
|
|
Karsten Hopp |
20d8e8 |
--- 1005,1012 ----
|
|
Karsten Hopp |
20d8e8 |
}
|
|
Karsten Hopp |
20d8e8 |
}
|
|
Karsten Hopp |
20d8e8 |
else if (msg_scrolled > Rows - 2
|
|
Karsten Hopp |
20d8e8 |
! && (c == 'j' || c == 'd' || c == 'f'
|
|
Karsten Hopp |
20d8e8 |
! || c == K_DOWN || c == K_PAGEDOWN))
|
|
Karsten Hopp |
20d8e8 |
c = K_IGNORE;
|
|
Karsten Hopp |
20d8e8 |
}
|
|
Karsten Hopp |
20d8e8 |
} while ((had_got_int && c == Ctrl_C)
|
|
Karsten Hopp |
20d8e8 |
*** ../vim-7.3.867/src/version.c 2013-03-19 13:33:18.000000000 +0100
|
|
Karsten Hopp |
20d8e8 |
--- src/version.c 2013-03-19 13:53:02.000000000 +0100
|
|
Karsten Hopp |
20d8e8 |
***************
|
|
Karsten Hopp |
20d8e8 |
*** 730,731 ****
|
|
Karsten Hopp |
20d8e8 |
--- 730,733 ----
|
|
Karsten Hopp |
20d8e8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
20d8e8 |
+ /**/
|
|
Karsten Hopp |
20d8e8 |
+ 868,
|
|
Karsten Hopp |
20d8e8 |
/**/
|
|
Karsten Hopp |
20d8e8 |
|
|
Karsten Hopp |
20d8e8 |
--
|
|
Karsten Hopp |
20d8e8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
20d8e8 |
74. Your most erotic dreams are about cybersex
|
|
Karsten Hopp |
20d8e8 |
|
|
Karsten Hopp |
20d8e8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
20d8e8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
20d8e8 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
20d8e8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|