aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-06-30 11:37:00 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-06-30 11:37:00 +0200
commit4af9fe66851a42c20c550f2c59aa64d7a327c9ff (patch)
tree5bc43ab92be87d8749ad258beb57271785ec6d24 /vis.c
parent60fe132d6c59d54021091af8e5aa09fcd4704562 (diff)
downloadvis-4af9fe66851a42c20c550f2c59aa64d7a327c9ff.tar.gz
vis-4af9fe66851a42c20c550f2c59aa64d7a327c9ff.tar.xz
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.
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
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 },