aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-31 13:34:27 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-31 15:39:12 +0200
commitf38cdb2d38357f8f01a766ea21cb30661a0d99e8 (patch)
treefef5d07b8c47ad3a7c7f9d18e957226cafc53833 /config.def.h
parent45994302f232fc4b13fde1b85f512f9238d36613 (diff)
downloadvis-f38cdb2d38357f8f01a766ea21cb30661a0d99e8.tar.gz
vis-f38cdb2d38357f8f01a766ea21cb30661a0d99e8.tar.xz
vis: cleanup handling of charwise/linewise motions
Also text objects in visual mode should now work better.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 859b3db..181dc7c 100644
--- a/config.def.h
+++ b/config.def.h
@@ -229,8 +229,8 @@ static void vis_mode_operator_input(const char *str, size_t len) {
}
static KeyBinding vis_operator_options[] = {
- { { NONE('v') }, linewise, { .b = false } },
- { { NONE('V') }, linewise, { .b = true } },
+ { { NONE('v') }, motiontype, { .i = CHARWISE } },
+ { { NONE('V') }, motiontype, { .i = LINEWISE } },
{ /* empty last element, array terminator */ },
};