diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-12-11 17:57:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-12-11 17:57:28 +0000 |
commit | 0b8ce56d733d09db0787e91b5347d34f026a3c27 (patch) | |
tree | 34c1a85b171bd3a7e42763407790eb6676620a61 /screen.c | |
parent | 095ffe9cd1465b2eab2ae25f17453f531bf9598b (diff) |
Fix rectangle copy to behave like emacs - the cursor is not part of the
selection on the right edge but on the left it is.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.102 2010-07-19 18:31:42 nicm Exp $ */ +/* $Id: screen.c,v 1.103 2010-12-11 17:57:28 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -287,7 +287,7 @@ screen_check_selection(struct screen *s, u_int px, u_int py) */ if (sel->ex < sel->sx) { /* Cursor (ex) is on the left. */ - if (px <= sel->ex) + if (px < sel->ex) return (0); if (px > sel->sx) @@ -297,7 +297,7 @@ screen_check_selection(struct screen *s, u_int px, u_int py) if (px < sel->sx) return (0); - if (px >= sel->ex) + if (px > sel->ex) return (0); } } else { |