]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-194 v7.0.194
authorBram Moolenaar <Bram@vim.org>
Tue, 13 Feb 2007 03:01:39 +0000 (03:01 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 13 Feb 2007 03:01:39 +0000 (03:01 +0000)
src/memline.c
src/version.c

index 6f59a9a9ce1abaa898bb9893fcd9f82e2ebb8bb8..d0eb0f8bfe07127dc83adc9c39b33318ab9525fb 100644 (file)
@@ -2054,13 +2054,21 @@ ml_get_buf(buf, lnum, will_change)
     linenr_T   lnum;
     int                will_change;            /* line will be changed */
 {
-    bhdr_T    *hp;
-    DATA_BL *dp;
-    char_u  *ptr;
+    bhdr_T     *hp;
+    DATA_BL    *dp;
+    char_u     *ptr;
+    static int recursive = 0;
 
     if (lnum > buf->b_ml.ml_line_count)        /* invalid line number */
     {
-       EMSGN(_("E315: ml_get: invalid lnum: %ld"), lnum);
+       if (recursive == 0)
+       {
+           /* Avoid giving this message for a recursive call, may happen when
+            * the GUI redraws part of the text. */
+           ++recursive;
+           EMSGN(_("E315: ml_get: invalid lnum: %ld"), lnum);
+           --recursive;
+       }
 errorret:
        STRCPY(IObuff, "???");
        return IObuff;
@@ -2088,7 +2096,14 @@ errorret:
         */
        if ((hp = ml_find_line(buf, lnum, ML_FIND)) == NULL)
        {
-           EMSGN(_("E316: ml_get: cannot find line %ld"), lnum);
+           if (recursive == 0)
+           {
+               /* Avoid giving this message for a recursive call, may happen
+                * when the GUI redraws part of the text. */
+               ++recursive;
+               EMSGN(_("E316: ml_get: cannot find line %ld"), lnum);
+               --recursive;
+           }
            goto errorret;
        }
 
index b89a0fad34712f9f51ed624fb1a96617e68969a0..0c45c476b8fda948a0cdacd125c4154a3cf60793 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    194,
 /**/
     193,
 /**/