mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibLine: Refresh the line after case-change operations
Previously, case-change operations did not produce visible results. As of now, setting `m_chars_touched_in_the_middle` to a non-zero value results in refreshing the whole line. So case-change operations now set that variable (causing a line refresh) in order to produce visible results as expected.
This commit is contained in:
parent
fc71403842
commit
44a46aabeb
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/ronak69 Commit: https://github.com/SerenityOS/serenity/commit/44a46aabeb Pull-request: https://github.com/SerenityOS/serenity/pull/20371
1 changed files with 3 additions and 1 deletions
|
@ -494,8 +494,10 @@ void Editor::case_change_word(Editor::CaseChangeOp change_op)
|
|||
m_buffer[m_cursor] = to_ascii_lowercase(m_buffer[m_cursor]);
|
||||
}
|
||||
++m_cursor;
|
||||
m_refresh_needed = true;
|
||||
}
|
||||
|
||||
m_refresh_needed = true;
|
||||
m_chars_touched_in_the_middle = 1;
|
||||
}
|
||||
|
||||
void Editor::capitalize_word()
|
||||
|
|
Loading…
Reference in a new issue