From: Daniel Carl Date: Mon, 20 May 2013 12:54:40 +0000 (+0200) Subject: Brought editor command and resume function back together. X-Git-Url: https://git.owens.tech/style.css/style.css/git?a=commitdiff_plain;h=fac20872e6b2587ba2ef761f13a0a1ce76003559;p=vimb.git Brought editor command and resume function back together. --- 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;