]> granicus.if.org Git - vim/commitdiff
patch 8.1.2223: cannot see what buffer an ml_get error is for v8.1.2223
authorBram Moolenaar <Bram@vim.org>
Sat, 26 Oct 2019 18:56:21 +0000 (20:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 26 Oct 2019 18:56:21 +0000 (20:56 +0200)
Problem:    Cannot see what buffer an ml_get error is for.
Solution:   Add the buffer number and name in the message

src/memline.c
src/version.c

index a26e4016aba99229f127c412fe9948c8e4562d61..8772ad287b034757d85cfa90c3156aa9dc9b665b 100644 (file)
@@ -2663,7 +2663,10 @@ errorret:
                /* Avoid giving this message for a recursive call, may happen
                 * when the GUI redraws part of the text. */
                ++recursive;
-               siemsg(_("E316: ml_get: cannot find line %ld"), lnum);
+               get_trans_bufname(buf);
+               shorten_dir(NameBuff);
+               siemsg(_("E316: ml_get: cannot find line %ld in buffer %d %s"),
+                                                 lnum, buf->b_fnum, NameBuff);
                --recursive;
            }
            goto errorret;
index 2d0c84ec63dcfbb56be99bc97ed3c43aa44821fc..b0fdab2f38ec7233155f6c18ec677e56ddc14697 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2223,
 /**/
     2222,
 /**/