changeset 2380:b47748aa3236 vim73

Don't conceal text in lines inside the Visual area.
author Bram Moolenaar <bram@vim.org>
date Sat, 24 Jul 2010 13:15:07 +0200
parents b67b0b5a93d3
children 17bbb52ae218
files runtime/doc/options.txt runtime/doc/todo.txt src/screen.c
diffstat 3 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1724,6 +1724,8 @@ A jump table for the options with a shor
 	are moving around text is concealed, but when starting to insert text
 	or selecting a Visual area the concealed text is displayed, so that
 	you can see what you are doing.
+	Keep in mind that the cursor position is not always where it's
+	displayed.  E.g., when moving vertically it may change column.
 
 
 'conceallevel' 'cole'		*'conceallevel'* *'cole'*
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt*      For Vim version 7.3b.  Last change: 2010 Jul 23
+*todo.txt*      For Vim version 7.3b.  Last change: 2010 Jul 24
 
 
 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
@@ -32,9 +32,16 @@ be worked on, but only if you sponsor Vi
 
 Check position in wrapped line with 'concealcursor' set.
 
+Patch for :find completion. (Nazri Ramliy)
+But I prefer to keep term.h and include/term.h
+
 Trick with syntax ID works, but it's not nice.  Can we give a sequence nr to
 syntax item matches?  At least the ones with a replacement char.
 
+'fenc' in modeline problem: add option to reload the file when 'fenc' is set
+to a different value in a modeline?  Option can be default on.
+Could be done with an autocommand?
+
 Include patch for horizontal scoll wheel? (Bjorn Winckler, 2010 Jul 20)
 Additional patch Jul 21.
 
@@ -100,6 +107,11 @@ Jumplist doesn't work properly in Insert
 Problem with transparent cmdline.  Also: Terminal title is wrong with
 non-ASCII character. (Lily White, 2010 Mar 7)
 
+Restoring terminal title in gnome-terminal causes a beep.  Saved value
+contains garbage?  Ukranian language characters.  'enc' and 'tenc' are utf-8.  
+(Anatoli Sakhnik, 2010 Jul 24)
+Using ":set titlestring=abc" with non-ascii characters also fails.
+
 Patch for horizontal mouse wheel. (Bjorn Winckler, 2010 Jul 18)
 
 iconv() doesn't fail on an illegal character, as documented. (Yongwei Wu, 2009
--- a/src/screen.c
+++ b/src/screen.c
@@ -4424,7 +4424,8 @@ win_line(wp, lnum, startrow, endrow, noc
 	    if (   wp->w_p_cole > 0
 		&& (wp != curwin || lnum != wp->w_cursor.lnum ||
 						      conceal_cursor_line(wp))
-		&& (syntax_flags & HL_CONCEAL) != 0)
+		&& (syntax_flags & HL_CONCEAL) != 0
+		&& !lnum_in_visual_area)
 	    {
 		char_attr = conceal_attr;
 		if (prev_syntax_id != syntax_id