mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +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
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…
Add table
Add a link
Reference in a new issue