aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-28 07:17:11 +0800
committerGitHub <noreply@github.com>2022-07-28 07:17:11 +0800
commitf1c01e5f94fa5a41de1805e38427dd7b35506352 (patch)
treed906ce291f111f1f72fc485a899ef992ddf2d240 /src/nvim/buffer.c
parente0eebe3087f926097fbc6902b157c9007c012572 (diff)
parent721ea8fab22ee7b2ba991c8b1edf303347832664 (diff)
downloadrneovim-f1c01e5f94fa5a41de1805e38427dd7b35506352.tar.gz
rneovim-f1c01e5f94fa5a41de1805e38427dd7b35506352.tar.bz2
rneovim-f1c01e5f94fa5a41de1805e38427dd7b35506352.zip
Merge pull request #19554 from zeertzjq/vim-9.0.0095
vim-patch:9.0.{0095,0096}: remove dead code
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 10ce893fe8..328a72476a 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3470,7 +3470,7 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, int use_san
// Proceed character by character through the statusline format string
// fmt_p is the current position in the input buffer
- for (char *fmt_p = usefmt; *fmt_p;) {
+ for (char *fmt_p = usefmt; *fmt_p != NUL;) {
if (curitem == (int)stl_items_len) {
size_t new_len = stl_items_len * 3 / 2;
@@ -3484,7 +3484,7 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, int use_san
stl_items_len = new_len;
}
- if (*fmt_p != NUL && *fmt_p != '%') {
+ if (*fmt_p != '%') {
prevchar_isflag = prevchar_isitem = false;
}