shithub: orca

Download patch

ref: 7f85ae421644bd0620dd0f1e7641c0fc403652df
parent: e5d3a9238079f7f9af436d4d6c6804ca05fc55ca
author: cancel <cancel@cancel.fm>
date: Tue Jan 28 08:48:10 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -2448,14 +2448,10 @@
   chs[n++] = begorend = wgetch(win);
   if (begorend != '0' && begorend != '1') goto unwind;
   if ((chs[n++] = wgetch(win)) != '~') goto unwind;
-  switch (begorend) {
-  case '0': return Brackpaste_seq_begin;
-  case '1': return Brackpaste_seq_end;
-  } // clang-format on
+  return begorend == '0' ? Brackpaste_seq_begin : Brackpaste_seq_end;
 unwind:
-  while (n > 0)
-    ungetch(chs[--n]);
-  return Brackpaste_seq_none;
+  while (n > 0) ungetch(chs[--n]);
+  return Brackpaste_seq_none; // clang-format on
 }
 
 staticni void try_send_to_gui_clipboard(Ged const *a,