changeset 2393:210a5605e126 vim73

Fix for cursor position in wrapped line with concealed text.
author Bram Moolenaar <bram@vim.org>
date Sat, 24 Jul 2010 17:39:52 +0200
parents 0371401d9d33
children a3aca345aafa
files runtime/doc/todo.txt src/screen.c
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -40,8 +40,6 @@ 6   In the quickfix window statusline ad
     New patch 2010 Jul 24
     Docs patch by Dominique Pelle, Mar 25 included?
 
-Check position in wrapped line with 'concealcursor' set.
-
 'undoreload' option: when fewer lines than these consider a reload as a change
 action and save the text before the reload, don't clear undo info.
 
--- a/src/screen.c
+++ b/src/screen.c
@@ -4500,6 +4500,7 @@ win_line(wp, lnum, startrow, endrow, noc
 		&& (int)wp->w_virtcol <= vcol + n_skip)
 	{
 	    wp->w_wcol = col - boguscols;
+	    wp->w_wrow = row;
 	    did_wcol = TRUE;
 	}
 #endif