From 66866aafd3941cb8fdd03343c46e0d9f94cd99fa Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 8 Jun 2015 13:51:06 +0100 Subject: Change gl/gh to only move cursor, not selecting (/) are unchanged That is more consistant with other goto commands (that just move the cursor) --- src/normal.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index c584baac..75fb2b20 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -144,10 +144,10 @@ void goto_commands(Context& context, NormalParams params) select_coord(buffer, ByteCoord{0,0}, context.selections()); break; case 'l': - select(context, {}); + select>(context, {}); break; case 'h': - select(context, {}); + select>(context, {}); break; case 'j': { @@ -1492,12 +1492,12 @@ static NormalCmdDesc cmds[] = { alt('E'), "extend to next WORD end", repeated>> }, { alt('B'), "extend to prevous WORD start", repeated>> }, - { alt('l'), "select to line end", repeated> }, - { Key::End, "select to line end", repeated> }, - { alt('L'), "extend to line end", repeated> }, - { alt('h'), "select to line begin", repeated> }, - { Key::Home, "select to line begin", repeated> }, - { alt('H'), "extend to line begin", repeated> }, + { alt('l'), "select to line end", repeated>> }, + { Key::End, "select to line end", repeated>> }, + { alt('L'), "extend to line end", repeated>> }, + { alt('h'), "select to line begin", repeated>> }, + { Key::Home, "select to line begin", repeated>> }, + { alt('H'), "extend to line begin", repeated>> }, { 'x', "select line", repeated> }, { 'X', "extend line", repeated> }, -- cgit v1.2.3