changeset 217:89114a6baf3c

updated for version 7.0061
author vimboss
date Fri, 18 Mar 2005 20:27:04 +0000
parents da182deebec7
children 0d6554dfc71e
files runtime/doc/syntax.txt src/misc1.c
diffstat 2 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt*	For Vim version 7.0aa.  Last change: 2005 Feb 21
+*syntax.txt*	For Vim version 7.0aa.  Last change: 2005 Mar 14
 
 
 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
@@ -3632,6 +3632,7 @@ term={attr-list}			*attr-list* *highligh
 	following items (in any order):
 		bold
 		underline
+		undercurl	not always available
 		reverse
 		inverse		same as reverse
 		italic
@@ -3640,6 +3641,9 @@ term={attr-list}			*attr-list* *highligh
 
 	Note that "bold" can be used here and by using a bold font.  They
 	have the same effect.
+	"undercurl" is a curly underline.  When "undercurl" is not possible
+	then "underline" is used.  In general "undercurl" is only available in
+	the GUI.
 
 start={term-list}				*highlight-start* *E422*
 stop={term-list}				*term-list* *highlight-stop*
@@ -3795,8 +3799,10 @@ font={font-name}					*highlight-font*
 
 guifg={color-name}					*highlight-guifg*
 guibg={color-name}					*highlight-guibg*
-	These give the foreground (guifg) and background (guibg) color to
-	use in the GUI.  There are a few special names:
+guisp={color-name}					*highlight-guisp*
+	These give the foreground (guifg), background (guibg) and special
+	(guisp) color to use in the GUI.  "guisp" is used for underline and
+	undercurl.  There are a few special names:
 		NONE		no color (transparent)
 		bg		use normal background color
 		background	use normal background color
@@ -3825,8 +3831,8 @@ guibg={color-name}					*highlight-guibg*
 	You can also specify a color by its Red, Green and Blue values.
 	The format is "#rrggbb", where
 		"rr"	is the Red value
+		"gg"	is the Green value
 		"bb"	is the Blue value
-		"gg"	is the Green value
 	All values are hexadecimal, range from "00" to "ff".  Examples: >
   :highlight Comment guifg=#11f0c3 guibg=#ff00ff
 <
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -106,6 +106,7 @@ set_indent(size, flags)
     int		doit = FALSE;
     int		ind_done;
     int		tab_pad;
+    int		retval = FALSE;
 
     /*
      * First check if there is anything to do and compute the number of
@@ -266,12 +267,13 @@ set_indent(size, flags)
 	if (saved_cursor.lnum == curwin->w_cursor.lnum
 				&& saved_cursor.col >= (colnr_T)(p - oldline))
 	    saved_cursor.col += ind_len - (p - oldline);
+	retval = TRUE;
     }
     else
 	vim_free(newline);
 
     curwin->w_cursor.col = ind_len;
-    return TRUE;
+    return retval;
 }
 
 /*