Skip to content

Commit 9a85346

Browse files
committed
patch 8.1.0568: error message for NUL byte in ScreenLines breaks Travis CI
Problem: Error message for NUL byte in ScreenLines breaks Travis CI. Solution: Use a normal message fornow.
1 parent 4087bfd commit 9a85346

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/gui.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,9 +2758,14 @@ gui_redraw_block(
27582758
if (col1 > 0)
27592759
--col1;
27602760
else
2761+
{
27612762
// FIXME: how can the first character ever be zero?
2762-
IEMSGN("INTERNAL ERROR: NUL in ScreenLines in row %ld",
2763-
gui.row);
2763+
// Make this IEMSGN when it no longer breaks Travis CI.
2764+
vim_snprintf((char *)IObuff, IOSIZE,
2765+
"INTERNAL ERROR: NUL in ScreenLines in row %ld",
2766+
(long)gui.row);
2767+
msg(IObuff);
2768+
}
27642769
}
27652770
# ifdef FEAT_GUI_GTK
27662771
if (col2 + 1 < Columns && ScreenLines[off + col2 + 1] == 0)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ static char *(features[]) =
792792

793793
static int included_patches[] =
794794
{ /* Add new patch number below this line */
795+
/**/
796+
568,
795797
/**/
796798
567,
797799
/**/

0 commit comments

Comments
 (0)