mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user