mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
A combining character on U+0020 SPACE stops it from being
`uninteresting' to the clipboard processing. [originally from svn r4634]
This commit is contained in:
parent
89e36c9567
commit
833bcbb559
@ -4804,6 +4804,7 @@ static void clipme(Terminal *term, pos top, pos bottom, int rect, int desel)
|
||||
*/
|
||||
if (!(ldata->lattr & LATTR_WRAPPED)) {
|
||||
while (IS_SPACE_CHR(ldata->chars[nlpos.x - 1].chr) &&
|
||||
!ldata->chars[nlpos.x - 1].cc_next &&
|
||||
poslt(top, nlpos))
|
||||
decpos(nlpos);
|
||||
if (poslt(nlpos, bottom))
|
||||
@ -5076,7 +5077,8 @@ static pos sel_spread_half(Terminal *term, pos p, int dir)
|
||||
*/
|
||||
if (!(ldata->lattr & LATTR_WRAPPED)) {
|
||||
termchar *q = ldata->chars + term->cols;
|
||||
while (q > ldata->chars && IS_SPACE_CHR(q[-1].chr))
|
||||
while (q > ldata->chars &&
|
||||
IS_SPACE_CHR(q[-1].chr) && !q[-1].cc_next)
|
||||
q--;
|
||||
if (q == ldata->chars + term->cols)
|
||||
q--;
|
||||
|
Loading…
Reference in New Issue
Block a user