vim-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
cb86893114
This commit is contained in:
Jan Edmund Lazo 2020-02-09 21:48:11 -05:00
parent 0f5bb9faf1
commit bde4f47eb2
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
1 changed files with 4 additions and 1 deletions

View File

@ -1863,7 +1863,10 @@ errorret:
// Avoid giving this message for a recursive call, may happen
// when the GUI redraws part of the text.
recursive++;
IEMSGN(_("E316: ml_get: cannot find line %" PRId64), lnum);
get_trans_bufname(buf);
shorten_dir(NameBuff);
iemsgf(_("E316: ml_get: cannot find line %" PRId64 " in buffer %d %s"),
lnum, buf->b_fnum, NameBuff);
recursive--;
}
goto errorret;