aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-02-04 00:17:04 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2023-02-04 00:17:04 +0100
commit7a710f5f0840724b7352ab36cfa9b8db5d533657 (patch)
treedaa45dff9e80cfa81e3ba74e1fa8f538d9f4dfd3 /src
parent964ae205a583807127eda75d9876fb6dfda6065c (diff)
downloadrneovim-7a710f5f0840724b7352ab36cfa9b8db5d533657.tar.gz
rneovim-7a710f5f0840724b7352ab36cfa9b8db5d533657.tar.bz2
rneovim-7a710f5f0840724b7352ab36cfa9b8db5d533657.zip
fix(column): no longer reset nrwidth_line_count for 'statuscolumn'
Problem: We still explicitly reset `nrwidth_line_count` when changing `'number'` or `'relativenumber'` but this is no longer needed since the introduction of a `statuscol_line_count`. Solution: Remove reset of `nrwidth_line_count`. Resolve https://github.com/neovim/neovim/pull/22094#issuecomment-1416168926.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/option.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 387b94533c..fd58ebd6fe 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2158,9 +2158,6 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va
if (curwin->w_p_spell) {
errmsg = did_set_spelllang(curwin);
}
- } else if (((int *)varp == &curwin->w_p_nu || (int *)varp == &curwin->w_p_rnu)
- && *curwin->w_p_stc != NUL) { // '(relative)number' + 'statuscolumn'
- curwin->w_nrwidth_line_count = 0;
}
if ((int *)varp == &curwin->w_p_arab) {