]> git.mdlowis.com Git - projs/tide.git/commitdiff
move some functions from common keyboard section to keyboard/tag section
authorMichael D. Lowis <mike@mdlowis.com>
Thu, 9 May 2019 03:11:02 +0000 (23:11 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Thu, 9 May 2019 03:11:02 +0000 (23:11 -0400)
src/tide.c

index 11cfc8dd62b14a04b86da753caa4b2281786c845..da358095a3bfdd04225b087ee4329680326c1962 100644 (file)
@@ -559,11 +559,6 @@ static void select_prev(char* arg) {
     view_selprev(win_view(FOCUSED));
 }
 
-static void change_focus(char* arg) {
-    (void)arg;
-    win_togglefocus();
-}
-
 static void undo(char* arg) {
     (void)arg;
     view_undo(win_view(FOCUSED));
@@ -574,14 +569,18 @@ static void redo(char* arg) {
     view_redo(win_view(FOCUSED));
 }
 
+/* Keyboard and Tag Handlers
+ ******************************************************************************/
+static void change_focus(char* arg) {
+    (void)arg;
+    win_togglefocus();
+}
+
 static void quit(char* arg) {
     (void)arg;
     win_quit();
 }
 
-/* Keyboard and Tag Handlers
- ******************************************************************************/
-
 static void put(char* arg) {
     Buf* buf = win_buf(EDIT);
     if (buf_save(buf, arg) == NORMAL) {