From 693ae0ac7f8b0b14ea2c0b479cd156f2d5fcf5ff Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Fri, 3 Feb 2012 17:24:50 +0400 Subject: [PATCH] Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved) reset selection after END/HOME/PgDn/PgUp pressed only if 'persistent selection' is switched off. Signed-off-by: Ilia Maslakov --- src/editor/edit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index c6918c0ea..e2122e736 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -3637,8 +3637,12 @@ edit_execute_cmd (WEdit * edit, unsigned long command, int char_for_insertion) { case CK_TopOnScreen: case CK_BottomOnScreen: - case CK_MarkToPageBegin: - case CK_MarkToPageEnd: + case CK_Top: + case CK_Bottom: + case CK_PageUp: + case CK_PageDown: + case CK_Home: + case CK_End: case CK_Up: case CK_Down: case CK_Left: