diff options
author | Boris Faure <billiob@gmail.com> | 2015-02-19 23:30:28 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-02-19 23:30:28 +0100 |
commit | ca2d7846a99ca826aa7211e5c0fb7cbbb87e394f (patch) | |
tree | bcb2e754b4a01a3b0fccc830cf7757dbbbc37284 /src | |
parent | e4d357ace2fdbd9e625cfe376fde288ac61e5273 (diff) |
fix normal selection after box selection
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/termio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c index 3bb8bb6..0414ffa 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c | |||
@@ -3790,6 +3790,7 @@ _handle_mouse_down_single_click(Termio *sd, | |||
3790 | } | 3790 | } |
3791 | else | 3791 | else |
3792 | { | 3792 | { |
3793 | sd->pty->selection.is_box = ctrl; | ||
3793 | sd->pty->selection.start.x = sd->pty->selection.end.x = cx; | 3794 | sd->pty->selection.start.x = sd->pty->selection.end.x = cx; |
3794 | sd->pty->selection.orig.x = cx; | 3795 | sd->pty->selection.orig.x = cx; |
3795 | sd->pty->selection.start.y = sd->pty->selection.end.y = cy - sd->scroll; | 3796 | sd->pty->selection.start.y = sd->pty->selection.end.y = cy - sd->scroll; |