Brought editor command and resume function back together.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 20 May 2013 12:54:40 +0000 (14:54 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 20 May 2013 12:54:40 +0000 (14:54 +0200)
src/command.c

index 7d2058d..1a82b0d 100644 (file)
@@ -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;