summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVT/TerminalWidget.h
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-06-05 16:46:33 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-10 17:18:02 +0200
commitce9460de59e31ede6793432a86fa20f83ee6c753 (patch)
treebd3e66aa44253ab7c2cf3f9e10ed7fe4bc3faefb /Userland/Libraries/LibVT/TerminalWidget.h
parent13991eade72ef6f2c488f40e9cb1304f0133ed57 (diff)
downloadserenity-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.h2
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;