mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 23:12:22 +00:00
Utilities: Add fix for 'less' not buffering the correct number of lines
'down_n()' now correctly buffers the needed number of lines, previously there were issues with using it to scroll much more than the existing buffer.
This commit is contained in:
parent
4e4d8d6905
commit
a071dba1ef
Notes:
sideshowbarker
2024-07-18 07:56:46 +09:00
Author: https://github.com/donaghylennon
Commit: a071dba1ef
Pull-request: https://github.com/SerenityOS/serenity/pull/9061
1 changed files with 1 additions and 3 deletions
|
@ -141,7 +141,7 @@ public:
|
|||
{
|
||||
clear_status();
|
||||
|
||||
while (n - (m_lines.size() - m_line) > 0) {
|
||||
while (n - (m_lines.size() - m_line) + m_height - 1 > 0) {
|
||||
if (!read_line())
|
||||
break;
|
||||
}
|
||||
|
@ -158,8 +158,6 @@ public:
|
|||
|
||||
void bottom()
|
||||
{
|
||||
while (read_line())
|
||||
;
|
||||
down_n(m_lines.size() - m_line);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue