]> granicus.if.org Git - vim/commitdiff
updated for version 7.0118 v7.0118
authorBram Moolenaar <Bram@vim.org>
Thu, 28 Jul 2005 22:36:45 +0000 (22:36 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 28 Jul 2005 22:36:45 +0000 (22:36 +0000)
20 files changed:
runtime/doc/eval.txt
runtime/doc/options.txt
runtime/doc/syntax.txt
runtime/doc/tags
runtime/doc/todo.txt
runtime/doc/version7.txt
runtime/spell/de/main.aap
runtime/spell/en/main.aap
runtime/spell/he/main.aap
runtime/spell/nl/main.aap
runtime/spell/pl/main.aap
src/eval.c
src/main.c
src/misc2.c
src/option.c
src/po/Makefile
src/proto/eval.pro
src/proto/message.pro
src/syntax.c
src/version.h

index 0030e3f5eaffac88699236f705c5b6a11c4a400a..6168b01f56254e3f3a394612221b5f9c12aeefe3 100644 (file)
@@ -1,4 +1,4 @@
-*eval.txt*      For Vim version 7.0aa.  Last change: 2005 Jul 25
+*eval.txt*      For Vim version 7.0aa.  Last change: 2005 Jul 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -2416,29 +2416,24 @@ get({dict}, {key} [, {default}])
 
                                                        *getbufline()*
 getbufline({expr}, {lnum} [, {end}])
-               Return the lines starting from {lnum} to {end} in the buffer
-               {expr} as a List. If {end} is omitted, only the line {lnum}
-               is returned.
+               Return a List with the lines starting from {lnum} to {end}
+               (inclusive) in the buffer {expr}.  If {end} is omitted, a List
+               with only the line {lnum} is returned.
 
                For the use of {expr}, see |bufname()| above.
 
-               When {lnum} is a String that doesn't start with a
-               digit, line() is called to translate the String into a Number.
-
-               {end} is used in the same way as {lnum}.
+               For {lnum} and {end} "$" can be used for the last line of the
+               buffer.  Otherwise a number must be used.
 
                When {lnum} is smaller than 1 or bigger than the number of
                lines in the buffer, an empty List is returned.
 
                When {end} is greater than the number of lines in the buffer,
                it is treated as {end} is set to the number of lines in the
-               buffer.
-
-               When non-existing line ranges are specified, an empty List is
-               returned.  When {end} is before {lnum} an empty List is
+               buffer.  When {end} is before {lnum} an empty List is
                returned.
 
-               This function works only for loaded buffers. For unloaded and
+               This function works only for loaded buffers.  For unloaded and
                non-existing buffers, an empty List is returned.
 
                Example: >
index 9b470ab3a7cdbedcd0dc24e5ddde2a0203367cae..88e440ad092d76396298a5fcec3d5cd5d681c96a 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 7.0aa.  Last change: 2005 Jul 26
+*options.txt*  For Vim version 7.0aa.  Last change: 2005 Jul 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -2282,9 +2282,11 @@ A jump table for the options with a short description can be found at |Q_op|.
        |viminfo-file|.  And Vim expects the terminal to use utf-8 too.  Thus
        setting 'encoding' to one of these values instead of utf-8 only has
        effect for encoding used for files when 'fileencoding' is empty.
+       "utf-16" is NOT supported (and probably never will be, since it's such
+       an ugly encoding). *utf-16*
 
-        When 'encoding' is set to a Unicode encoding, and 'fileencodings' was
-        not set yet, the default for 'fileencodings' is changed.
+       When 'encoding' is set to a Unicode encoding, and 'fileencodings' was
+       not set yet, the default for 'fileencodings' is changed.
 
                        *'endofline'* *'eol'* *'noendofline'* *'noeol'*
 'endofline' 'eol'      boolean (default on)
index 130c9b39202fa85ecced1c570d84bcbf5958b0c7..324d45238a6bcc0b1eafa53a05f5a1f2085c216a 100644 (file)
@@ -1,4 +1,4 @@
-*syntax.txt*   For Vim version 7.0aa.  Last change: 2005 Jul 18
+*syntax.txt*   For Vim version 7.0aa.  Last change: 2005 Jul 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -3641,6 +3641,15 @@ specified field is used, and settings are merged with previous ones.  So, the
 result is like this single command has been used: >
    :hi Comment term=bold ctermfg=Cyan guifg=#80a0ff gui=bold
 <
+When listing a highlight group and 'verbose' is non-zero, the listing will
+also tell where it was last set.  Example: >
+       :verbose hi Comment
+<      Comment        xxx term=bold ctermfg=4 guifg=Blue ~
+           Last set from /home/mool/vim/vim7/runtime/syntax/syncolor.vim ~
+
+For details about when this message is given and when it's valid see
+|:set-verbose|.
+
                                        *highlight-args* *E416* *E417* *E423*
 There are three types of terminals for highlighting:
 term   a normal terminal (vt100, xterm)
index 82235775abc45bb9dcc64182cd8d330287cfeec6..cce8395e32f63bd83309ad2633a1c31749316afe 100644 (file)
@@ -4984,6 +4984,7 @@ g:netrw_rmdir_cmd pi_netrw.txt    /*g:netrw_rmdir_cmd*
 g:netrw_rmf_cmd        pi_netrw.txt    /*g:netrw_rmf_cmd*
 g:var  eval.txt        /*g:var*
 g;     motion.txt      /*g;*
+g<     message.txt     /*g<*
 g<Down>        motion.txt      /*g<Down>*
 g<End> motion.txt      /*g<End>*
 g<Home>        motion.txt      /*g<Home>*
@@ -6746,6 +6747,7 @@ usr_44.txt        usr_44.txt      /*usr_44.txt*
 usr_45.txt     usr_45.txt      /*usr_45.txt*
 usr_90.txt     usr_90.txt      /*usr_90.txt*
 usr_toc.txt    usr_toc.txt     /*usr_toc.txt*
+utf-16 options.txt     /*utf-16*
 utf-8  mbyte.txt       /*utf-8*
 utf-8-char-arg mbyte.txt       /*utf-8-char-arg*
 utf-8-in-xwindows      mbyte.txt       /*utf-8-in-xwindows*
index fe3c41ef049df88613da79925e16554cff01686e..e680568916578ea90670556546d62066160f484c 100644 (file)
@@ -1,4 +1,4 @@
-*todo.txt*      For Vim version 7.0aa.  Last change: 2005 Jul 27
+*todo.txt*      For Vim version 7.0aa.  Last change: 2005 Jul 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -30,6 +30,8 @@ be worked on, but only if you sponsor Vim development.  See |sponsor|.
                                                        *known-bugs*
 -------------------- Known bugs and current work -----------------------
 
+Is it simple to let ":verbose hi mailSubject" mention where it was last set?
+
 Mac unicode patch (Da Woon Jung):
 - selecting proportional font breaks display
 - UTF-8 text causes display problems.  Font replacement causes this.
@@ -52,8 +54,6 @@ Awaiting response:
 -   Win32: tearoff menu window should have a scrollbar when it's taller than
     the screen.
 -   mblen(NULL, 0) also in Vim 6.3?
--   Win32: Crash when pasting Simplified Chinese in utf-8. (rainux, 2005 June
-    20)
 
 
 PLANNED FOR VERSION 7.0:
index 5fd76888576a21597ff5190be5a03c643560aea1..126d76765845aaf0c48fd0782cba31cfe36f86a8 100644 (file)
@@ -1,4 +1,4 @@
-*version7.txt*  For Vim version 7.0aa.  Last change: 2005 Jul 27
+*version7.txt*  For Vim version 7.0aa.  Last change: 2005 Jul 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -238,6 +238,9 @@ is especially useful for commands such as ":syntax", ":autocommand" and
 commands and highlighting is kept.  Only works when the 'more' option is set.
 Previously it only partly worked for ":clist".
 
+The |g<| command can be used to see the last page of messages after you have
+hit <Enter> at the |hit-enter-prompt|.  Then you can scroll further back.
+
 
 POSIX compatibility                                    *new-posix*
 -------------------
@@ -724,6 +727,9 @@ Win32: Balloons can have multiple lines if common controls supports it.
 The 's' flag is added to the search() and searchpair() function to set the
 ' mark if the cursor is moved. (Yegappan Lakshmanan)
 
+When 'verbose' is set the output of ":highlight" will show where a highlight
+item was last set.
+
 ==============================================================================
 COMPILE TIME CHANGES                                   *compile-changes-7*
 
index f4b0251115156e1644fb5be8f77f1c52348940bf..6340d4320706f0d6b9a3436aa894f2fc7b5c82a2 100644 (file)
@@ -14,11 +14,11 @@ all: $(SPELLDIR)/de.latin1.spl $(SPELLDIR)/de.utf-8.spl ../README_de.txt
 
 $(SPELLDIR)/de.latin1.spl : $(VIM) $(FILES)
         :sys env LANG=de_DE.ISO8859-1
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/de de_DE" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/de de_DE" -c q
 
 $(SPELLDIR)/de.utf-8.spl : $(VIM) $(FILES)
         :sys env LANG=de_DE.UTF-8
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/de de_DE" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/de de_DE" -c q
 
 ../README_de.txt: README_de_DE_comb.txt
         :copy $source $target
index 03aae6d417296f261b826ac6e68636f12035f197..b3bbb24394c75c961c7db5ea3fa5e406a66c1121 100644 (file)
@@ -18,16 +18,16 @@ all: $(SPELLDIR)/en.latin1.spl $(SPELLDIR)/en.utf-8.spl \
 
 $(SPELLDIR)/en.latin1.spl : $(VIM) $(FILES)
         :sys env LANG=en_US.ISO8859-1
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/en en_US en_AU en_CA en_GB
-                       en_NZ" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/en
+                        en_US en_AU en_CA en_GB en_NZ" -c q
 
 $(SPELLDIR)/en.utf-8.spl : $(VIM) $(FILES)
         :sys env LANG=en_US.UTF-8
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/en en_US en_AU en_CA en_GB
-                       en_NZ" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/en
+                        en_US en_AU en_CA en_GB en_NZ" -c q
 
 $(SPELLDIR)/en.ascii.spl : $(VIM) $(FILES)
-        :sys $(VIM) -e -c "mkspell! -ascii $(SPELLDIR)/en
+        :sys $(VIM) -u NONE -e -c "mkspell! -ascii $(SPELLDIR)/en
                         en_US en_AU en_CA en_GB en_NZ" -c q
  
 ../README_en.txt: README_en_US.txt README_en_AU.txt
index 923aff28582219bfab33e43d4490126f9f141749..9cd59755f2f386c46e25283bb223b3bbfed686cc 100644 (file)
@@ -13,10 +13,10 @@ all: $(SPELLDIR)/he.utf-8.spl $(SPELLDIR)/he.iso-8859-8.spl ../README_he.txt
 
 $(SPELLDIR)/he.utf-8.spl : $(VIM) $(FILES)
         :sys env LANG=he_IL.UTF-8
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/he he_IL" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/he he_IL" -c q
 
 $(SPELLDIR)/he.iso-8859-8.spl : $(VIM) $(FILES)
-        :sys $(VIM) -e -c "set enc=iso-8859-8"
+        :sys $(VIM) -u NONE -e -c "set enc=iso-8859-8"
                         -c "mkspell! $(SPELLDIR)/he he_IL" -c q
 
 ../README_he.txt : README_he_IL.txt
index 80e5f74802a49c17a38f0592f8d5bd071e82349c..f398cb6cd51a0cc43c9db8bd27ff1d18990df052 100644 (file)
@@ -13,11 +13,11 @@ all: $(SPELLDIR)/nl.latin1.spl $(SPELLDIR)/nl.utf-8.spl ../README_nl.txt
 
 $(SPELLDIR)/nl.latin1.spl : $(VIM) $(FILES)
         :sys env LANG=nl_NL.ISO8859-1
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/nl nl_NL" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/nl nl_NL" -c q
 
 $(SPELLDIR)/nl.utf-8.spl : $(VIM) $(FILES)
         :sys env LANG=nl_NL.UTF-8
-               $(VIM) -e -c "mkspell! $(SPELLDIR)/nl nl_NL" -c q
+               $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/nl nl_NL" -c q
 
 ../README_nl.txt : README_nl_NL.txt
         :copy $source $target
index 168883682deff7bb030194aa6b3f204e9fec665b..c9d2e4e80600ad5f47fff2ab939a27f4ef8d5728 100644 (file)
@@ -13,13 +13,13 @@ all: $(SPELLDIR)/pl.iso-8859-2.spl $(SPELLDIR)/pl.utf-8.spl \
         $(SPELLDIR)/pl.cp1250.spl ../README_pl.txt
 
 $(SPELLDIR)/pl.iso-8859-2.spl : $(VIM) $(FILES)
-        :sys env LANG=pl_PL.ISO8859-2 $(VIM) -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
+        :sys env LANG=pl_PL.ISO8859-2 $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
 
 $(SPELLDIR)/pl.utf-8.spl : $(VIM) $(FILES)
-        :sys env LANG=pl_PL.UTF-8 $(VIM) -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
+        :sys env LANG=pl_PL.UTF-8 $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
 
 $(SPELLDIR)/pl.cp1250.spl : $(VIM) $(FILES)
-        :sys $(VIM) -e -c "set enc=cp1250" -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
+        :sys $(VIM) -u NONE -e -c "set enc=cp1250" -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
 
 ../README_pl.txt: README_pl_PL.txt
         :copy $source $target
index f2cc2a0b7b81544e20ca1c2792165acfe2fbf7b9..ae36e6f30a4a2a94bdf5ea472773fc0f3d0309d4 100644 (file)
@@ -643,6 +643,7 @@ static void init_tv __ARGS((typval_T *varp));
 static long get_tv_number __ARGS((typval_T *varp));
 static long get_tv_number_chk __ARGS((typval_T *varp, int *denote));
 static linenr_T get_tv_lnum __ARGS((typval_T *argvars));
+static linenr_T get_tv_lnum_buf __ARGS((typval_T *argvars, buf_T *buf));
 static char_u *get_tv_string __ARGS((typval_T *varp));
 static char_u *get_tv_string_buf __ARGS((typval_T *varp, char_u *buf));
 static char_u *get_tv_string_chk __ARGS((typval_T *varp));
@@ -9187,11 +9188,12 @@ f_getbufline(argvars, rettv)
     buf = get_buf_tv(&argvars[0]);
     --emsg_off;
 
-    lnum = get_tv_lnum(&argvars[1]);
+    lnum = get_tv_lnum_buf(&argvars[1], buf);
     if (argvars[2].v_type == VAR_UNKNOWN)
        end = lnum;
     else
-       end = get_tv_lnum(&argvars[2]);
+       end = get_tv_lnum_buf(&argvars[2], buf);
+
     get_buffer_lines(buf, lnum, end, TRUE, rettv);
 }
 
@@ -15651,7 +15653,8 @@ get_tv_number_chk(varp, denote)
 }
 
 /*
- * Get the lnum from the first argument.  Also accepts ".", "$", etc.
+ * Get the lnum from the first argument.
+ * Also accepts ".", "$", etc., but that only works for the current buffer.
  * Returns -1 on error.
  */
     static linenr_T
@@ -15672,6 +15675,24 @@ get_tv_lnum(argvars)
     return lnum;
 }
 
+/*
+ * Get the lnum from the first argument.
+ * Also accepts "$", then "buf" is used.
+ * Returns 0 on error.
+ */
+    static linenr_T
+get_tv_lnum_buf(argvars, buf)
+    typval_T   *argvars;
+    buf_T      *buf;
+{
+    if (argvars[0].v_type == VAR_STRING
+           && argvars[0].vval.v_string != NULL
+           && argvars[0].vval.v_string[0] == '$'
+           && buf != NULL)
+       return buf->b_ml.ml_line_count;
+    return get_tv_number_chk(&argvars[0], NULL);
+}
+
 /*
  * Get the string value of a variable.
  * If it is a Number variable, the number is converted into a string.
@@ -18678,6 +18699,23 @@ store_session_globals(fd)
 }
 #endif
 
+/*
+ * Display script name where an item was last set.
+ * Should only be invoked when 'verbose' is non-zero.
+ */
+    void
+last_set_msg(scriptID)
+    scid_T scriptID;
+{
+    if (scriptID != 0)
+    {
+       verbose_enter();
+       MSG_PUTS(_("\n\tLast set from "));
+       MSG_PUTS(get_scriptname(scriptID));
+       verbose_leave();
+    }
+}
+
 #endif /* FEAT_EVAL */
 
 #if defined(FEAT_MODIFY_FNAME) || defined(FEAT_EVAL) || defined(PROTO)
index 876289f67546398ec1a8543576ef87bd1cb414b0..380a5728969f147a7780322806e50126511f0916 100644 (file)
@@ -1034,7 +1034,7 @@ main_loop(cmdwin, noexmode)
            emsg_on_display = FALSE;    /* can delete error message now */
            did_emsg = FALSE;
            msg_didany = FALSE;         /* reset lines_left in msg_start() */
-           clear_sb_text();            /* clear scroll-back text */
+           may_clear_sb_text();        /* clear scroll-back text on next msg */
            showruler(FALSE);
 
            setcursor();
index db6642ee94f606394363f450016cc27cc52ce1a0..d677b1b4ca815e9f3a99c97cc0039544d3a9ddca 100644 (file)
@@ -870,10 +870,13 @@ lalloc(size, message)
        if (releasing)
            break;
        releasing = TRUE;
-       try_again = mf_release_all();
+
+       clear_sb_text();              /* free any scrollback text */
+       try_again = mf_release_all(); /* release as many blocks as possible */
 #ifdef FEAT_EVAL
-       try_again |= garbage_collect();
+       try_again |= garbage_collect(); /* cleanup recursive lists/dicts */
 #endif
+
        releasing = FALSE;
        if (!try_again)
            break;
index e177216263edfbca1e6fefd86ff4c844603e1607..32eca0bf5d7277f2a21610dfd2df53c4cca822f5 100644 (file)
@@ -3814,15 +3814,7 @@ do_set(arg, opt_flags)
                    showoneopt(&options[opt_idx], opt_flags);
 #ifdef FEAT_EVAL
                    if (p_verbose > 0)
-                   {
-                       if (options[opt_idx].scriptID != 0)
-                       {
-                           verbose_enter();
-                           MSG_PUTS(_("\n\tLast set from "));
-                           MSG_PUTS(get_scriptname(options[opt_idx].scriptID));
-                           verbose_leave();
-                       }
-                   }
+                       last_set_msg(options[opt_idx].scriptID);
 #endif
                }
                else
index 617d4f9702b47f444593adadfce07829c71058d8..f4281878b8b4f0c87e8dd64f442add73869a9eed 100644 (file)
@@ -27,6 +27,7 @@ LANGUAGES = \
                zh_CN.UTF-8 \
                zh_TW \
                zh_TW.UTF-8 \
+# end marker
 
 MOFILES = \
                af.mo \
@@ -51,6 +52,7 @@ MOFILES = \
                zh_CN.mo \
                zh_TW.UTF-8.mo \
                zh_TW.mo \
+# end marker
 
 CONVERTED = \
                cs.cp1250.mo \
@@ -60,6 +62,7 @@ CONVERTED = \
                sk.cp1250.mo \
                uk.cp1251.mo \
                zh_CN.cp936.mo \
+# end marker
 
 CHECKFILES = \
                af.ck \
@@ -91,6 +94,7 @@ CHECKFILES = \
                sk.cp1250.ck \
                uk.cp1251.ck \
                zh_CN.cp936.ck \
+# end marker
 
 PACKAGE = vim
 SHELL = /bin/sh
index 86ea3968fabfda1da9f1cfc53eb08e1824449471..51fb26dfba067b3bec34cb1d2f75531acd989dc7 100644 (file)
@@ -86,6 +86,7 @@ int func_has_abort __ARGS((void *cookie));
 int read_viminfo_varlist __ARGS((vir_T *virp, int writing));
 void write_viminfo_varlist __ARGS((FILE *fp));
 int store_session_globals __ARGS((FILE *fd));
+void last_set_msg __ARGS((scid_T scriptID));
 int modify_fname __ARGS((char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen));
 char_u *do_string_sub __ARGS((char_u *str, char_u *pat, char_u *sub, char_u *flags));
 /* vim: set ft=c : */
index faa03680c5d043b7bbc6824ce6254fe2d6182ed7..e0e2e6e81de3177fb9f21ba181b05cf16eaf9a08 100644 (file)
@@ -39,7 +39,9 @@ void msg_puts_title __ARGS((char_u *s));
 void msg_puts_long_attr __ARGS((char_u *longstr, int attr));
 void msg_puts_long_len_attr __ARGS((char_u *longstr, int len, int attr));
 void msg_puts_attr __ARGS((char_u *s, int attr));
+void may_clear_sb_text __ARGS((void));
 void clear_sb_text __ARGS((void));
+void show_sb_text __ARGS((void));
 int msg_use_printf __ARGS((void));
 void mch_errmsg __ARGS((char *str));
 void mch_msg __ARGS((char *str));
index 714c90a990ace769339c91237920eaa8ae5b916b..99d9e67428e24f48a38efa4340b130e04626a975 100644 (file)
@@ -51,6 +51,9 @@ struct hl_group
 #endif
     int                sg_link;        /* link to this highlight group ID */
     int                sg_set;         /* combination of SG_* flags */
+#ifdef FEAT_EVAL
+    scid_T     sg_scriptID;    /* script in which the group was last set */
+#endif
 };
 
 #define SG_TERM                1       /* term has been set */
@@ -6352,6 +6355,9 @@ do_highlight(line, forceit, init)
                if (!init)
                    HL_TABLE()[from_id - 1].sg_set |= SG_LINK;
                HL_TABLE()[from_id - 1].sg_link = to_id;
+#ifdef FEAT_EVAL
+               HL_TABLE()[from_id - 1].sg_scriptID = current_SID;
+#endif
                redraw_all_later(NOT_VALID);
            }
        }
@@ -7101,6 +7107,9 @@ do_highlight(line, forceit, init)
 #endif
        else
            set_hl_attr(idx);
+#ifdef FEAT_EVAL
+       HL_TABLE()[idx].sg_scriptID = current_SID;
+#endif
        redraw_all_later(NOT_VALID);
     }
     vim_free(key);
@@ -7201,6 +7210,12 @@ highlight_clear(idx)
     HL_TABLE()[idx].sg_font_name = NULL;
     HL_TABLE()[idx].sg_gui_attr = 0;
 #endif
+#ifdef FEAT_EVAL
+    /* Clear the script ID only when there is no link, since that is not
+     * cleared. */
+    if (HL_TABLE()[idx].sg_link == 0)
+       HL_TABLE()[idx].sg_scriptID = 0;
+#endif
 }
 
 #if defined(FEAT_GUI) || defined(PROTO)
@@ -7868,13 +7883,19 @@ highlight_list_one(id)
                                    0, sgp->sg_font_name, "font");
 #endif
 
-    if (sgp->sg_link)
+    if (sgp->sg_link && !got_int)
     {
        (void)syn_list_header(didh, 9999, id);
+       didh = TRUE;
        msg_puts_attr((char_u *)"links to", hl_attr(HLF_D));
        msg_putchar(' ');
        msg_outtrans(HL_TABLE()[HL_TABLE()[id - 1].sg_link - 1].sg_name);
     }
+
+#ifdef FEAT_EVAL
+    if (didh && p_verbose > 0)
+       last_set_msg(sgp->sg_scriptID);
+#endif
 }
 
     static int
@@ -7890,6 +7911,8 @@ highlight_list_arg(id, didh, type, iarg, sarg, name)
     char_u     *ts;
     int                i;
 
+    if (got_int)
+       return FALSE;
     if (type == LIST_STRING ? (sarg != NULL) : (iarg != 0))
     {
        ts = buf;
@@ -7915,10 +7938,12 @@ highlight_list_arg(id, didh, type, iarg, sarg, name)
        (void)syn_list_header(didh,
                               (int)(vim_strsize(ts) + STRLEN(name) + 1), id);
        didh = TRUE;
-
-       MSG_PUTS_ATTR(name, hl_attr(HLF_D));
-       MSG_PUTS_ATTR("=", hl_attr(HLF_D));
-       msg_outtrans(ts);
+       if (!got_int)
+       {
+           MSG_PUTS_ATTR(name, hl_attr(HLF_D));
+           MSG_PUTS_ATTR("=", hl_attr(HLF_D));
+           msg_outtrans(ts);
+       }
     }
     return didh;
 }
@@ -8068,11 +8093,17 @@ syn_list_header(did_header, outlen, id)
     if (!did_header)
     {
        msg_putchar('\n');
+       if (got_int)
+           return TRUE;
        msg_outtrans(HL_TABLE()[id - 1].sg_name);
        endcol = 15;
     }
     else if (msg_col + outlen + 1 >= Columns)
+    {
        msg_putchar('\n');
+       if (got_int)
+           return TRUE;
+    }
     else
     {
        if (msg_col >= endcol)  /* wrap around is like starting a new line */
index 03557c29adcad5d5431229a76045a52a85002488..4d4421a64b085cf7e70b700281216b1a5fef4b1e 100644 (file)
@@ -36,5 +36,5 @@
 #define VIM_VERSION_NODOT      "vim70aa"
 #define VIM_VERSION_SHORT      "7.0aa"
 #define VIM_VERSION_MEDIUM     "7.0aa ALPHA"
-#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 27)"
-#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 27, compiled "
+#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 28)"
+#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 28, compiled "