4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Once an ml_get error is given redrawing part of the screen may
12 cause it again, resulting in an endless loop.
13 Solution: Don't give the error message for a recursive call.
17 *** ../vim-7.0.193/src/memline.c Wed Feb 7 03:42:37 2007
18 --- src/memline.c Tue Feb 13 03:56:00 2007
22 int will_change; /* line will be changed */
28 if (lnum > buf->b_ml.ml_line_count) /* invalid line number */
30 ! EMSGN(_("E315: ml_get: invalid lnum: %ld"), lnum);
32 STRCPY(IObuff, "???");
36 int will_change; /* line will be changed */
41 ! static int recursive = 0;
43 if (lnum > buf->b_ml.ml_line_count) /* invalid line number */
47 ! /* Avoid giving this message for a recursive call, may happen when
48 ! * the GUI redraws part of the text. */
50 ! EMSGN(_("E315: ml_get: invalid lnum: %ld"), lnum);
54 STRCPY(IObuff, "???");
59 if ((hp = ml_find_line(buf, lnum, ML_FIND)) == NULL)
61 ! EMSGN(_("E316: ml_get: cannot find line %ld"), lnum);
67 if ((hp = ml_find_line(buf, lnum, ML_FIND)) == NULL)
71 ! /* Avoid giving this message for a recursive call, may happen
72 ! * when the GUI redraws part of the text. */
74 ! EMSGN(_("E316: ml_get: cannot find line %ld"), lnum);
80 *** ../vim-7.0.193/src/version.c Tue Feb 13 03:49:01 2007
81 --- src/version.c Tue Feb 13 03:59:22 2007
85 { /* Add new patch number below this line */
91 hundred-and-one symptoms of being an internet addict:
92 114. You are counting items, you go "0,1,2,3,4,5,6,7,8,9,A,B,C,D...".
94 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
95 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
96 \\\ download, build and distribute -- http://www.A-A-P.org ///
97 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///