diff options
| author | hss <hristo.staykov@gmail.com> | 2021-03-20 21:53:31 -0400 |
|---|---|---|
| committer | hss <hristo.staykov@gmail.com> | 2021-03-20 21:53:31 -0400 |
| commit | 07e2b03c11cefc0202b3aa4ed357103371a67744 (patch) | |
| tree | 1dc3d28af74aafe3f79dc8907130f4b2a8ba8a3c /src | |
| parent | 73ecd3356f9f9828dd5a7ba54a12bdcba63bf18a (diff) | |
Only use separator-cursor for the first line number in a wrapped line
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 4 |
1 files 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}); |
