mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05: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)) {
|
if (!(ldata->lattr & LATTR_WRAPPED)) {
|
||||||
while (IS_SPACE_CHR(ldata->chars[nlpos.x - 1].chr) &&
|
while (IS_SPACE_CHR(ldata->chars[nlpos.x - 1].chr) &&
|
||||||
|
!ldata->chars[nlpos.x - 1].cc_next &&
|
||||||
poslt(top, nlpos))
|
poslt(top, nlpos))
|
||||||
decpos(nlpos);
|
decpos(nlpos);
|
||||||
if (poslt(nlpos, bottom))
|
if (poslt(nlpos, bottom))
|
||||||
@ -5076,7 +5077,8 @@ static pos sel_spread_half(Terminal *term, pos p, int dir)
|
|||||||
*/
|
*/
|
||||||
if (!(ldata->lattr & LATTR_WRAPPED)) {
|
if (!(ldata->lattr & LATTR_WRAPPED)) {
|
||||||
termchar *q = ldata->chars + term->cols;
|
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--;
|
q--;
|
||||||
if (q == ldata->chars + term->cols)
|
if (q == ldata->chars + term->cols)
|
||||||
q--;
|
q--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user