Patch 8.1.2223
Problem: Cannot see what buffer an ml_get error is for.
Solution: Add the buffer number and name in the message
Files: src/memline.c
*** ../vim-8.1.2222/src/memline.c 2019-10-19 17:01:23.464526564 +0200
--- src/memline.c 2019-10-26 20:53:49.564138547 +0200
***************
*** 2663,2669 ****
/* Avoid giving this message for a recursive call, may happen
* when the GUI redraws part of the text. */
++recursive;
! siemsg(_("E316: ml_get: cannot find line %ld"), lnum);
--recursive;
}
goto errorret;
--- 2663,2672 ----
/* Avoid giving this message for a recursive call, may happen
* when the GUI redraws part of the text. */
++recursive;
! get_trans_bufname(buf);
! shorten_dir(NameBuff);
! siemsg(_("E316: ml_get: cannot find line %ld in buffer %d %s"),
! lnum, buf->b_fnum, NameBuff);
--recursive;
}
goto errorret;
*** ../vim-8.1.2222/src/version.c 2019-10-26 20:45:11.450026374 +0200
--- src/version.c 2019-10-26 20:55:32.847735134 +0200
***************
*** 743,744 ****
--- 743,746 ----
{ /* Add new patch number below this line */
+ /**/
+ 2223,
/**/
--
Engineers understand that their appearance only bothers other people and
therefore it is not worth optimizing.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201910261858.x9QIwDVv025336%40masaka.moolenaar.net.