From 4af9fe66851a42c20c550f2c59aa64d7a327c9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 30 Jun 2015 11:37:00 +0200 Subject: Perform character prev/next movements based on Text not View While it is slower, it allows to move to characters which are currently not visible. This will be handy when experimenting with multiple cursors. --- vis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index bb7bf21..34f8837 100644 --- a/vis.c +++ b/vis.c @@ -184,8 +184,8 @@ static Movement moves[] = { [MOVE_LINE_NEXT] = { .txt = text_line_next, .type = LINEWISE }, [MOVE_LINE] = { .txt = line, .type = LINEWISE|IDEMPOTENT|JUMP}, [MOVE_COLUMN] = { .txt = column, .type = CHARWISE|IDEMPOTENT}, - [MOVE_CHAR_PREV] = { .view = view_char_prev }, - [MOVE_CHAR_NEXT] = { .view = view_char_next }, + [MOVE_CHAR_PREV] = { .txt = text_char_prev }, + [MOVE_CHAR_NEXT] = { .txt = text_char_next }, [MOVE_WORD_START_PREV] = { .txt = text_word_start_prev, .type = CHARWISE }, [MOVE_WORD_START_NEXT] = { .txt = text_word_start_next, .type = CHARWISE }, [MOVE_WORD_END_PREV] = { .txt = text_word_end_prev, .type = CHARWISE|INCLUSIVE }, -- cgit v1.2.3