From 9ca69820ac7f2df99fa48cdfa4eada216f80164c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 Dec 2012 19:12:24 +0100 Subject: [PATCH] do_go: support append mode on go to top/bottom, ignore case --- src/main.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.cc b/src/main.cc index 98b8a88e..1eb02d77 100644 --- a/src/main.cc +++ b/src/main.cc @@ -70,26 +70,24 @@ void do_go(Context& context) return; Editor& editor = context.editor(); - switch (key.key) + switch (tolower(key.key)) { case 'g': case 't': context.push_jump(); - editor.select(editor.buffer().begin()); + editor.select(editor.buffer().begin(), mode); break; case 'l': - case 'L': editor.select(select_to_eol, mode); break; case 'h': - case 'H': editor.select(select_to_eol_reverse, mode); break; case 'b': { context.push_jump(); const Buffer& buf = editor.buffer(); - editor.select(buf.iterator_at_line_begin(buf.line_count() - 1)); + editor.select(buf.iterator_at_line_begin(buf.line_count() - 1), mode); break; } }