mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 01:00:28 +03:00
Fix spurious redraw
m_last_setup was not storing the actual position that was used to redraw the window, but the previous one, leading to an additional spurious redraw immediatly after (triggered by window position not believed to be the one at last redraw). Fixes #2562
This commit is contained in:
parent
b9ca3ee6dc
commit
54d35472c0
@ -170,8 +170,8 @@ const DisplayBuffer& Window::update_display_buffer(const Context& context)
|
||||
|
||||
m_display_buffer.optimize();
|
||||
|
||||
m_last_setup = build_setup(context);
|
||||
set_position(setup.window_pos);
|
||||
m_last_setup = build_setup(context);
|
||||
|
||||
if (profile and not (buffer().flags() & Buffer::Flags::Debug))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user