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

View File

@@ -1863,7 +1863,10 @@ errorret:
// Avoid giving this message for a recursive call, may happen // Avoid giving this message for a recursive call, may happen
// when the GUI redraws part of the text. // when the GUI redraws part of the text.
recursive++; 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--; recursive--;
} }
goto errorret; goto errorret;