We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e178af5 commit 0fbc926Copy full SHA for 0fbc926
2 files changed
src/message.c
@@ -949,8 +949,10 @@ msg_may_trunc(int force, char_u *s)
949
int n;
950
int room;
951
952
+ // If something unexpected happened "room" may be negative, check for that
953
+ // just in case.
954
room = (int)(Rows - cmdline_row - 1) * Columns + sc_col - 1;
- if ((force || (shortmess(SHM_TRUNC) && !exmode_active))
955
+ if (room > 0 && (force || (shortmess(SHM_TRUNC) && !exmode_active))
956
&& (n = (int)STRLEN(s) - room) > 0)
957
{
958
if (has_mbyte)
src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
735
736
static int included_patches[] =
737
{ /* Add new patch number below this line */
738
+/**/
739
+ 5161,
740
/**/
741
5160,
742
0 commit comments