diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-06-05 16:46:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-10 17:18:02 +0200 |
commit | ce9460de59e31ede6793432a86fa20f83ee6c753 (patch) | |
tree | bd3e66aa44253ab7c2cf3f9e10ed7fe4bc3faefb /Userland/Libraries/LibVT/TerminalWidget.h | |
parent | 13991eade72ef6f2c488f40e9cb1304f0133ed57 (diff) | |
download | serenity-ce9460de59e31ede6793432a86fa20f83ee6c753.zip |
Kernel+LibVT: Fix selection with scrollback wrap-around
If lines are removed from the tail of the scrollback buffer, the
previous line indices will refer to different lines; therefore we need
to offset them.
Diffstat (limited to 'Userland/Libraries/LibVT/TerminalWidget.h')
-rw-r--r-- | Userland/Libraries/LibVT/TerminalWidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibVT/TerminalWidget.h b/Userland/Libraries/LibVT/TerminalWidget.h index 73ef382d69..0935f98cf7 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.h +++ b/Userland/Libraries/LibVT/TerminalWidget.h @@ -119,7 +119,7 @@ private: virtual void set_window_title(const StringView&) override; virtual void set_window_progress(int value, int max) override; virtual void terminal_did_resize(u16 columns, u16 rows) override; - virtual void terminal_history_changed() override; + virtual void terminal_history_changed(int delta) override; virtual void emit(const u8*, size_t) override; virtual void set_cursor_style(CursorStyle) override; |