Patch 8.1.2223

11 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 26, 2019, 2:58:22 PM10/26/19
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages