~vcs-imports/putty/master

Viewing all changes in revision 5525.

  • Committer: Simon Tatham
  • Date: 2019-07-24 18:00:52 UTC
  • Revision ID: git-v1:5e2ac205fd5dab8f2bb306ed66d12237ff51c3f7
term_clrsb(): call deselect() if the selection was affected.

Any terminal event that modifies the range of screen+scrollback
currently covered by the mouse selection should call deselect(), so
that users won't be misled into thinking that the new version of the
highlighted text would be pasted, and also so that using the
MBT_EXTEND action to modify the selection bounds won't start from
a selection you never had in the first place.

Clearing the scrollback is such an event, if the selection covered any
of the scrollback at all; so we should apply the same policy here as
everywhere else.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: