1
Fork 0
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:
ronak69 2023-08-04 16:31:43 +00:00 committed by Ali Mohammad Pur
parent fc71403842
commit 44a46aabeb

View file

@ -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()