From fac20872e6b2587ba2ef761f13a0a1ce76003559 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 20 May 2013 14:54:40 +0200 Subject: [PATCH] Brought editor command and resume function back together. --- src/command.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/command.c b/src/command.c index 7d2058d..1a82b0d 100644 --- a/src/command.c +++ b/src/command.c @@ -655,6 +655,18 @@ gboolean command_eval(const Arg *arg) return success; } +gboolean command_nextprev(const Arg *arg) +{ + if (vb.state.mode & VB_MODE_HINTING) { + hints_focus_next(arg->i ? true : false); + } else { + /* mode will be set in completion_complete */ + completion_complete(arg->i ? true : false); + } + + return true; +} + gboolean command_editor(const Arg *arg) { char *file_path = NULL; @@ -717,18 +729,6 @@ gboolean command_editor(const Arg *arg) return true; } -gboolean command_nextprev(const Arg *arg) -{ - if (vb.state.mode & VB_MODE_HINTING) { - hints_focus_next(arg->i ? true : false); - } else { - /* mode will be set in completion_complete */ - completion_complete(arg->i ? true : false); - } - - return true; -} - static void editor_resume(GPid pid, int status, OpenEditorData *data) { char *text; -- 2.20.1