From 07e2b03c11cefc0202b3aa4ed357103371a67744 Mon Sep 17 00:00:00 2001 From: hss Date: Sat, 20 Mar 2021 21:53:31 -0400 Subject: [PATCH] Only use separator-cursor for the first line number in a wrapped line --- src/highlighters.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 02bdc208..27864cbe 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -1151,8 +1151,8 @@ private: const auto atom_face = last_line == current_line ? face_wrapped : ((m_hl_cursor_line and is_cursor_line) ? face_absolute : face); - const auto& separator {is_cursor_line && m_separator_cursor ? *m_separator_cursor - : m_separator}; + const auto& separator {is_cursor_line && m_separator_cursor && last_line != current_line + ? *m_separator_cursor : m_separator}; line.insert(line.begin(), {buffer, atom_face}); line.insert(line.begin() + 1, {separator, face});