From 627cc1b3d8d7fa6dc09f2f48fd5e3567f85d46cd Mon Sep 17 00:00:00 2001 From: ZviRackover Date: Tue, 10 Jul 2018 21:46:40 +0300 Subject: test: build_stl_str_hl (#8703) Improve coverage of `build_stl_str_hl`. Minor removal of dead code in the tested function. --- src/nvim/buffer.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 19c17a9d68..95eaf4dcf6 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3273,9 +3273,6 @@ int build_stl_str_hl( // Two `%` in a row is the escape sequence to print a // single `%` in the output buffer. if (*fmt_p == '%') { - // Ignore the character if we're out of room in the output buffer. - if (out_p >= out_end_p) - break; *out_p++ = *fmt_p++; prevchar_isflag = prevchar_isitem = false; continue; -- cgit