diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-10-17 17:46:26 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-10-17 17:48:39 +1100 |
| commit | 287217b98715faaddab019f4e17ab54fccaaec70 (patch) | |
| tree | 5eeed3d98eb645f242a6f02033ac1e1be7936c69 /src/window.cc | |
| parent | 360a6847be5c79a57da73c15efbbb954cd8ba749 (diff) | |
Fix splitting of display atoms accross multi-columns codepoint
Honor the split request by inserting an empty atom to make sure
client code can assume splitting does replace one atom with two
Fixes #4753
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc index 455e6a2d..9aa3ea73 100644 --- a/src/window.cc +++ b/src/window.cc @@ -150,7 +150,7 @@ const DisplayBuffer& Window::update_display_buffer(const Context& context) LineCount buffer_line = setup.first_line + line; if (buffer_line >= buffer().line_count()) break; - lines.emplace_back(AtomList{{buffer(), buffer_line, {buffer_line, buffer()[buffer_line].length()}}}); + lines.emplace_back(AtomList{{buffer(), {buffer_line, {buffer_line, buffer()[buffer_line].length()}}}}); } m_display_buffer.compute_range(); |
