mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibLine: Correctly handle line content overflow when on last line
Fixes #2525
This commit is contained in:
parent
aa3e440a58
commit
492df51e70
Notes:
sideshowbarker
2024-07-19 05:45:54 +09:00
Author: https://github.com/alimpfard
Commit: 492df51e70
Pull-request: https://github.com/SerenityOS/serenity/pull/2526
Issue: https://github.com/SerenityOS/serenity/issues/2525
Reviewed-by: https://github.com/awesomekling
2 changed files with 13 additions and 2 deletions
|
@ -250,7 +250,7 @@ private:
|
|||
|
||||
size_t cursor_line() const
|
||||
{
|
||||
return (m_drawn_cursor + m_num_columns + current_prompt_length() - 1) / m_num_columns;
|
||||
return (m_drawn_cursor + m_num_columns + current_prompt_length()) / m_num_columns;
|
||||
}
|
||||
|
||||
size_t offset_in_line() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue