use gk and gj for goto first/last line instead of gt and gb

This commit is contained in:
Maxime Coste 2013-04-09 14:23:26 +02:00
parent 43b5bd5260
commit 61293e8d60

View File

@ -69,8 +69,7 @@ void do_go(Context& context)
Editor& editor = context.editor(); Editor& editor = context.editor();
switch (tolower(key.key)) switch (tolower(key.key))
{ {
case 'g': case 'k':
case 't':
context.push_jump(); context.push_jump();
editor.select(editor.buffer().begin(), mode); editor.select(editor.buffer().begin(), mode);
break; break;
@ -80,7 +79,7 @@ void do_go(Context& context)
case 'h': case 'h':
editor.select(select_to_eol_reverse, mode); editor.select(select_to_eol_reverse, mode);
break; break;
case 'b': case 'j':
{ {
context.push_jump(); context.push_jump();
const Buffer& buf = editor.buffer(); const Buffer& buf = editor.buffer();