diff options
author | ZviRackover <zvirack@gmail.com> | 2018-07-10 21:46:40 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-07-10 20:46:40 +0200 |
commit | 627cc1b3d8d7fa6dc09f2f48fd5e3567f85d46cd (patch) | |
tree | a78e02d2e138ab1c9b707003d4f604ba8fdab43e /src | |
parent | 2574f299e55b85cb9294cedfccda35ad9b2aec21 (diff) | |
download | rneovim-627cc1b3d8d7fa6dc09f2f48fd5e3567f85d46cd.tar.gz rneovim-627cc1b3d8d7fa6dc09f2f48fd5e3567f85d46cd.tar.bz2 rneovim-627cc1b3d8d7fa6dc09f2f48fd5e3567f85d46cd.zip |
test: build_stl_str_hl (#8703)
Improve coverage of `build_stl_str_hl`.
Minor removal of dead code in the tested function.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; |