aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-26 09:23:48 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-10-26 15:04:42 +0100
commite912a488cbb9065700316ff0f34cde183c90cbfc (patch)
tree870de5f63a4c1ce501b72897bd0d0f91f65ce4ca /config.def.h
parent5958d1e993298920deb02bf61eeb351ca768e3e4 (diff)
downloadvis-e912a488cbb9065700316ff0f34cde183c90cbfc.tar.gz
vis-e912a488cbb9065700316ff0f34cde183c90cbfc.tar.xz
vis: merge editor.c into vis.c
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h
index 9d049fb..722dc07 100644
--- a/config.def.h
+++ b/config.def.h
@@ -534,7 +534,7 @@ static KeyAction vis_action[] = {
[VIS_ACTION_REDRAW] = {
"editor-redraw",
"Redraw current editor content",
- call, { .f = editor_draw }
+ call, { .f = vis_draw }
},
[VIS_ACTION_REPLACE_CHAR] = {
"replace-char",
@@ -654,12 +654,12 @@ static KeyAction vis_action[] = {
[VIS_ACTION_WINDOW_NEXT] = {
"window-next",
"Focus next window",
- call, { .f = editor_window_next }
+ call, { .f = vis_window_next }
},
[VIS_ACTION_WINDOW_PREV] = {
"window-prev",
"Focus previous window",
- call, { .f = editor_window_prev }
+ call, { .f = vis_window_prev }
},
[VIS_ACTION_OPEN_LINE_ABOVE] = {
"open-line-above",
@@ -1279,7 +1279,7 @@ static KeyBinding vis_mode_prompt[] = {
};
static void vis_mode_prompt_input(Vis *vis, const char *str, size_t len) {
- editor_insert_key(vis, str, len);
+ vis_insert_key(vis, str, len);
}
static void vis_mode_prompt_enter(Vis *vis, Mode *old) {
@@ -1289,7 +1289,7 @@ static void vis_mode_prompt_enter(Vis *vis, Mode *old) {
static void vis_mode_prompt_leave(Vis *vis, Mode *new) {
if (new->isuser)
- editor_prompt_hide(vis);
+ vis_prompt_hide(vis);
}
static KeyBinding vis_mode_insert[] = {
@@ -1328,7 +1328,7 @@ static void vis_mode_insert_input(Vis *vis, const char *str, size_t len) {
oldpos = pos + len;
action_reset(vis, &vis->action_prev);
vis->action_prev.op = &ops[OP_REPEAT_INSERT];
- editor_insert_key(vis, str, len);
+ vis_insert_key(vis, str, len);
}
static KeyBinding vis_mode_replace[] = {
@@ -1349,7 +1349,7 @@ static void vis_mode_replace_input(Vis *vis, const char *str, size_t len) {
oldpos = pos + len;
action_reset(vis, &vis->action_prev);
vis->action_prev.op = &ops[OP_REPEAT_REPLACE];
- editor_replace_key(vis, str, len);
+ vis_replace_key(vis, str, len);
}
/*