mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-23 14:05:03 -05:00
Properly hide existing combining characters with pre-edit text
If a character cell under the pre-edit text has a combining character, it shouldn't be combined with a character from the pre-edit text, but should be hidden instead. This also means that the pre-edit text could contain combining characters if I implemented a way to put them into it.
This commit is contained in:
parent
29ac4da8fb
commit
3bbde58c09
@ -6279,6 +6279,10 @@ static void do_paint(Terminal *term)
|
||||
unsigned long tattr, tchar;
|
||||
bool break_run, do_copy, next_run_dirty = false;
|
||||
termchar *d = lchars + j;
|
||||
bool in_preedit = j >= preedit_start && j < preedit_end;
|
||||
|
||||
if (in_preedit)
|
||||
d = term->preedit_termchars + j - preedit_start;
|
||||
|
||||
tattr = newline[j].attr;
|
||||
tchar = newline[j].chr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user