Skip to content

Commit cb86893

Browse files
committed
patch 8.1.2223: cannot see what buffer an ml_get error is for
Problem: Cannot see what buffer an ml_get error is for. Solution: Add the buffer number and name in the message
1 parent 7ab5d77 commit cb86893

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/memline.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,10 @@ ml_get_buf(
26632663
/* Avoid giving this message for a recursive call, may happen
26642664
* when the GUI redraws part of the text. */
26652665
++recursive;
2666-
siemsg(_("E316: ml_get: cannot find line %ld"), lnum);
2666+
get_trans_bufname(buf);
2667+
shorten_dir(NameBuff);
2668+
siemsg(_("E316: ml_get: cannot find line %ld in buffer %d %s"),
2669+
lnum, buf->b_fnum, NameBuff);
26672670
--recursive;
26682671
}
26692672
goto errorret;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2223,
744746
/**/
745747
2222,
746748
/**/

0 commit comments

Comments
 (0)