From bde4f47eb29b757e3282fb08ae6ee844941b1f65 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 9 Feb 2020 21:48:11 -0500 Subject: 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 https://github.com/vim/vim/commit/cb86893114ce33dc9c7bd4ff992b05c12406b35d --- src/nvim/memline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 922b684120..fa7c39cc65 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -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; -- cgit