shithub: orca

Download patch

ref: 135b743c45f29f404817e35fc1966bcb0d39d8e9
parent: 6da518a9ea64b833aa49de216e0f7daeb673fd35
author: cancel <cancel@cancel.fm>
date: Thu Dec 20 20:45:13 EST 2018

Add pressing spacebar in append mode to write '.'

--- a/tui_main.c
+++ b/tui_main.c
@@ -2084,10 +2084,14 @@
       ged_input_cmd(&ged_state, Ged_input_cmd_toggle_selresize_mode);
       break;
     case ' ':
-      ged_input_cmd(&ged_state, Ged_input_cmd_toggle_play_pause);
-      // flush lap time -- quick hack to prevent time before hitting spacebar
-      // to play being applied as actual playback time
-      stm_laptime(&last_time);
+      if (ged_state.input_mode == Ged_input_mode_append) {
+        ged_input_character(&ged_state, '.');
+      } else {
+        ged_input_cmd(&ged_state, Ged_input_cmd_toggle_play_pause);
+        // flush lap time -- quick hack to prevent time before hitting spacebar
+        // to play being applied as actual playback time
+        stm_laptime(&last_time);
+      }
       break;
     case 27: // Escape
       ged_input_cmd(&ged_state, Ged_input_cmd_escape);