summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-12-18 19:12:24 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-12-18 19:12:24 +0100
commit9ca69820ac7f2df99fa48cdfa4eada216f80164c (patch)
treeb8f1b1ad9b226863c5ca830b9b706035547a2d2d /src
parent6cc4ec796edfb62e693f4b582fdd90db5f2557a8 (diff)
do_go: support append mode on go to top/bottom, ignore case
Diffstat (limited to 'src')
-rw-r--r--src/main.cc8
1 files 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;
}
}