diff options
-rw-r--r-- | screen.c | 6 | ||||
-rw-r--r-- | window-copy.c | 6 |
2 files changed, 6 insertions, 6 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 { diff --git a/window-copy.c b/window-copy.c index 2ef93278..0bebd6ad 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1,4 +1,4 @@ -/* $Id: window-copy.c,v 1.124 2010-09-18 15:41:18 tcunha Exp $ */ +/* $Id: window-copy.c,v 1.125 2010-12-11 17:57:28 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1267,8 +1267,8 @@ window_copy_copy_selection(struct window_pane *wp, struct session *sess) /* Cursor is on the left. */ lastex = data->selx + 1; restex = data->selx + 1; - firstsx = data->cx + 1; - restsx = data->cx + 1; + firstsx = data->cx; + restsx = data->cx; } } else { /* |