mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
test: build_stl_str_hl (#8703)
Improve coverage of `build_stl_str_hl`. Minor removal of dead code in the tested function.
This commit is contained in:

committed by
Justin M. Keyes

parent
2574f299e5
commit
627cc1b3d8
@@ -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;
|
||||
|
Reference in New Issue
Block a user