]> granicus.if.org Git - vim/commitdiff
updated for version 7.0061
authorBram Moolenaar <Bram@vim.org>
Fri, 18 Mar 2005 20:27:04 +0000 (20:27 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 18 Mar 2005 20:27:04 +0000 (20:27 +0000)
runtime/doc/syntax.txt
src/misc1.c

index bc7bcae45c1b8af4ac5be49663d7d390917414a4..eecfcaa5b505da6f908145b93b302fb8d89c1681 100644 (file)
@@ -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* *highlight-term* *E418*
        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* *highlight-term* *E418*
 
        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
-               "bb"    is the Blue value
                "gg"    is the Green value
+               "bb"    is the Blue value
        All values are hexadecimal, range from "00" to "ff".  Examples: >
   :highlight Comment guifg=#11f0c3 guibg=#ff00ff
 <
index b3a18e5faf888c98c0fec50eb0f5010295efc586..50017c49893ac73a963f00560e11efafd097b181 100644 (file)
@@ -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;
 }
 
 /*