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.
This commit is contained in:
Nicholas Marriott
2010-12-11 17:56:01 +00:00
parent 9802fea615
commit 20ed20ea1e
2 changed files with 4 additions and 4 deletions

View File

@@ -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 {
/*