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
Notes: sideshowbarker 2024-07-18 02:47:59 +09:00

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