diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-09 21:48:11 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-16 07:49:44 -0500 |
commit | bde4f47eb29b757e3282fb08ae6ee844941b1f65 (patch) | |
tree | f42493c391f1c55d1bfa3901da40ef18d57f8a13 | |
parent | 0f5bb9faf1b3a5bf97d5c727d3d8682067bffe80 (diff) | |
download | rneovim-bde4f47eb29b757e3282fb08ae6ee844941b1f65.tar.gz rneovim-bde4f47eb29b757e3282fb08ae6ee844941b1f65.tar.bz2 rneovim-bde4f47eb29b757e3282fb08ae6ee844941b1f65.zip |
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
-rw-r--r-- | src/nvim/memline.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |