shithub: orca

Download patch

ref: a72e0d3495d152718c3643804fb3455a6cbf0e3a
parent: b3da737010bec853091603c89d9f73755824e3a2
author: cancel <cancel@cancel.fm>
date: Sun Jan 26 17:44:58 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -530,9 +530,8 @@
   enum { T = 1 << 0, B = 1 << 1, L = 1 << 2, R = 1 << 3 };
   chtype rs[(T | B | L | R) + 1];
   if (use_rulers) {
-    for (Usz i = 0; i < sizeof rs / sizeof(chtype); ++i) {
+    for (Usz i = 0; i < sizeof rs / sizeof(chtype); ++i)
       rs[i] = '+';
-    }
     if (use_fancy_rulers) {
       rs[T | L] = ACS_ULCORNER;
       rs[T | R] = ACS_URCORNER;
@@ -679,9 +678,8 @@
   // length 8 wants to snap to 25 and 33, not 24 and 32). also this math is
   // sloppy.
   assert(ruler > 0);
-  if (in == 0) {
+  if (in == 0)
     return delta_rulers > 0 ? ruler * (Usz)delta_rulers : 1;
-  }
   // could overflow if inputs are big
   if (delta_rulers < 0)
     in += ruler - 1;
@@ -805,7 +803,6 @@
   mm->portmidi.type = Midi_mode_type_portmidi;
   mm->portmidi.device_id = dev_id;
   return pmNoError;
-
 fail:
   midi_mode_init_null(mm);
   return e;