aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2023-05-22 11:07:55 +0200
committerGitHub <noreply@github.com>2023-05-22 17:07:55 +0800
commitb11a8c1b5d3985479351b34f2078d490cbf59e90 (patch)
tree48618e4456c79c9747eac3fc6cbb71c9834872d6 /src
parentb7708eac24c22a96676176c68569d6859a9f793f (diff)
downloadrneovim-b11a8c1b5d3985479351b34f2078d490cbf59e90.tar.gz
rneovim-b11a8c1b5d3985479351b34f2078d490cbf59e90.tar.bz2
rneovim-b11a8c1b5d3985479351b34f2078d490cbf59e90.zip
fix(highlight): remove unnecessary assignment to char_attr for 'spell' (#23713)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/drawline.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c
index dc90be36be..863d237062 100644
--- a/src/nvim/drawline.c
+++ b/src/nvim/drawline.c
@@ -2046,9 +2046,6 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
v = (ptr - line);
if (has_spell && v >= word_end && v > cur_checked_col) {
spell_attr = 0;
- if (!attr_pri) {
- wlv.char_attr = hl_combine_attr(wlv.char_attr, syntax_attr);
- }
if (c != 0 && ((!has_syntax && !no_plain_buffer) || can_spell)) {
char *prev_ptr;
char *p;