diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-28 18:00:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 18:00:14 +0800 |
commit | b499ccb2fa632f127d1270535692cc687a5156bf (patch) | |
tree | ded35bccc4ca4ee9a9639f95a7e2f06e09fb1811 | |
parent | 070b0b4572f0b56d8c7bb64f0eb1b4f351717119 (diff) | |
download | rneovim-b499ccb2fa632f127d1270535692cc687a5156bf.tar.gz rneovim-b499ccb2fa632f127d1270535692cc687a5156bf.tar.bz2 rneovim-b499ccb2fa632f127d1270535692cc687a5156bf.zip |
vim-patch:9.1.0214: Duplicate condition in win_lbr_chartabsize() (#28072)
Problem: Duplicate condition in win_lbr_chartabsize().
Solution: Remove the duplicate condition, as it's already checked above.
(zeertzjq)
closes: vim/vim#14320
https://github.com/vim/vim/commit/5532d3b3f0c73d4e0fa07122ebbed3bf201870f9
-rw-r--r-- | src/nvim/plines.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/plines.c b/src/nvim/plines.c index dae9de48c6..d90ee9c1ba 100644 --- a/src/nvim/plines.c +++ b/src/nvim/plines.c @@ -249,7 +249,7 @@ CharSize charsize_regular(CharsizeArg *csarg, char *const cur, colnr_T const vco } csarg->indent_width = head_mid; } - if (head_mid > 0 && wcol + size > wp->w_width_inner) { + if (head_mid > 0) { // Calculate effective window width. int prev_rem = wp->w_width_inner - wcol; int width = width2 - head_mid; |