|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.226
|
|
|
3ef2ca |
Fcc: outbox
|
|
|
3ef2ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
3ef2ca |
Mime-Version: 1.0
|
|
|
3ef2ca |
Content-Type: text/plain; charset=UTF-8
|
|
|
3ef2ca |
Content-Transfer-Encoding: 8bit
|
|
|
3ef2ca |
------------
|
|
|
3ef2ca |
|
|
|
3ef2ca |
Patch 7.4.226 (after 7.4.219)
|
|
|
3ef2ca |
Problem: Cursurline highlighting not redrawn when scrolling. (John
|
|
|
3ef2ca |
Marriott)
|
|
|
3ef2ca |
Solution: Check for required redraw in two places.
|
|
|
3ef2ca |
Files: src/move.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.225/src/move.c 2014-03-27 12:11:43.888393741 +0100
|
|
|
3ef2ca |
--- src/move.c 2014-03-28 21:45:56.958245561 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 20,25 ****
|
|
|
3ef2ca |
--- 20,26 ----
|
|
|
3ef2ca |
#include "vim.h"
|
|
|
3ef2ca |
|
|
|
3ef2ca |
static void comp_botline __ARGS((win_T *wp));
|
|
|
3ef2ca |
+ static void redraw_for_cursorline __ARGS((win_T *wp));
|
|
|
3ef2ca |
static int scrolljump_value __ARGS((void));
|
|
|
3ef2ca |
static int check_top_offset __ARGS((void));
|
|
|
3ef2ca |
static void curs_rows __ARGS((win_T *wp, int do_botline));
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 106,111 ****
|
|
|
3ef2ca |
--- 107,113 ----
|
|
|
3ef2ca |
#ifdef FEAT_FOLDING
|
|
|
3ef2ca |
wp->w_cline_folded = folded;
|
|
|
3ef2ca |
#endif
|
|
|
3ef2ca |
+ redraw_for_cursorline(wp);
|
|
|
3ef2ca |
wp->w_valid |= (VALID_CROW|VALID_CHEIGHT);
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
if (done + n > wp->w_height)
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 124,129 ****
|
|
|
3ef2ca |
--- 126,152 ----
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/*
|
|
|
3ef2ca |
+ * Redraw when w_cline_row changes and 'relativenumber' or 'cursorline' is
|
|
|
3ef2ca |
+ * set.
|
|
|
3ef2ca |
+ */
|
|
|
3ef2ca |
+ static void
|
|
|
3ef2ca |
+ redraw_for_cursorline(wp)
|
|
|
3ef2ca |
+ win_T *wp;
|
|
|
3ef2ca |
+ {
|
|
|
3ef2ca |
+ if ((wp->w_p_rnu
|
|
|
3ef2ca |
+ #ifdef FEAT_SYN_HL
|
|
|
3ef2ca |
+ || wp->w_p_cul
|
|
|
3ef2ca |
+ #endif
|
|
|
3ef2ca |
+ )
|
|
|
3ef2ca |
+ && (wp->w_valid & VALID_CROW) == 0
|
|
|
3ef2ca |
+ # ifdef FEAT_INS_EXPAND
|
|
|
3ef2ca |
+ && !pum_visible()
|
|
|
3ef2ca |
+ # endif
|
|
|
3ef2ca |
+ )
|
|
|
3ef2ca |
+ redraw_win_later(wp, SOME_VALID);
|
|
|
3ef2ca |
+ }
|
|
|
3ef2ca |
+
|
|
|
3ef2ca |
+ /*
|
|
|
3ef2ca |
* Update curwin->w_topline and redraw if necessary.
|
|
|
3ef2ca |
* Used to update the screen before printing a message.
|
|
|
3ef2ca |
*/
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 772,791 ****
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
! /* Redraw when w_cline_row changes and 'relativenumber' or 'cursorline' is
|
|
|
3ef2ca |
! * set. */
|
|
|
3ef2ca |
! if ((curwin->w_p_rnu
|
|
|
3ef2ca |
! #ifdef FEAT_SYN_HL
|
|
|
3ef2ca |
! || curwin->w_p_cul
|
|
|
3ef2ca |
! #endif
|
|
|
3ef2ca |
! )
|
|
|
3ef2ca |
! && (curwin->w_valid & VALID_CROW) == 0
|
|
|
3ef2ca |
! # ifdef FEAT_INS_EXPAND
|
|
|
3ef2ca |
! && !pum_visible()
|
|
|
3ef2ca |
! # endif
|
|
|
3ef2ca |
! )
|
|
|
3ef2ca |
! redraw_later(SOME_VALID);
|
|
|
3ef2ca |
!
|
|
|
3ef2ca |
wp->w_valid |= VALID_CROW|VALID_CHEIGHT;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/* validate botline too, if update_screen doesn't do it */
|
|
|
3ef2ca |
--- 795,801 ----
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
! redraw_for_cursorline(curwin);
|
|
|
3ef2ca |
wp->w_valid |= VALID_CROW|VALID_CHEIGHT;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/* validate botline too, if update_screen doesn't do it */
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 2504,2511 ****
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
comp_botline(curwin);
|
|
|
3ef2ca |
curwin->w_cursor.lnum = curwin->w_botline - 1;
|
|
|
3ef2ca |
! curwin->w_valid &= ~(VALID_WCOL|VALID_CHEIGHT|
|
|
|
3ef2ca |
! VALID_WROW|VALID_CROW);
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
else
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
--- 2514,2521 ----
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
comp_botline(curwin);
|
|
|
3ef2ca |
curwin->w_cursor.lnum = curwin->w_botline - 1;
|
|
|
3ef2ca |
! curwin->w_valid &=
|
|
|
3ef2ca |
! ~(VALID_WCOL|VALID_CHEIGHT|VALID_WROW|VALID_CROW);
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
else
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
*** ../vim-7.4.225/src/version.c 2014-03-27 19:08:52.008777244 +0100
|
|
|
3ef2ca |
--- src/version.c 2014-03-28 21:48:45.330248141 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 736,737 ****
|
|
|
3ef2ca |
--- 736,739 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 226,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
Bad fashion can discourage normal people from interacting with the engineer
|
|
|
3ef2ca |
and talking about the cute things their children do.
|
|
|
3ef2ca |
(Scott Adams - The Dilbert principle)
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
3ef2ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
3ef2ca |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
3ef2ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|