mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibVT: Don't return a history size if alternate buffer is used
The line history is unavailable if the alternate screen buffer is currently enabled. However, since TerminalWidget uses the history size to offset its line numbers when rendering, it will try to render inaccessible lines once the history is not empty anymore.
This commit is contained in:
parent
0625342382
commit
1618cffb75
Notes:
sideshowbarker
2024-07-18 16:50:11 +09:00
Author: https://github.com/timschumi
Commit: 1618cffb75
Pull-request: https://github.com/SerenityOS/serenity/pull/7812
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ public:
|
|||
}
|
||||
m_max_history_lines = value;
|
||||
}
|
||||
size_t history_size() const { return m_history.size(); }
|
||||
size_t history_size() const { return m_use_alternate_screen_buffer ? 0 : m_history.size(); }
|
||||
#endif
|
||||
|
||||
void inject_string(const StringView&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue