shithub: orca

Download patch

ref: 832e7795358884e9d3ecd4fb85226933e38e9532
parent: 8b18d820b4611d8ae9d9804c325f4bade970b445
author: cancel <cancel@cancel.fm>
date: Fri Jan 3 20:25:48 EST 2020

Remove escape as way to set sel size to clipboard

--- a/tui_main.c
+++ b/tui_main.c
@@ -1783,11 +1783,6 @@
       a->ged_cursor.h = 1;
       a->ged_cursor.w = 1;
       a->is_draw_dirty = true;
-    } else if (a->clipboard_field.height >= 1 &&
-               a->clipboard_field.width >= 1) {
-      a->ged_cursor.h = a->clipboard_field.height;
-      a->ged_cursor.w = a->clipboard_field.width;
-      a->is_draw_dirty = true;
     }
   } break;
   }
@@ -2166,8 +2161,7 @@
 void try_send_to_gui_clipboard(Ged const* a, bool* io_use_gui_clipboard) {
   if (!*io_use_gui_clipboard)
     return;
-  // If we want to use grid directly
-#if 0
+#if 0 // If we want to use grid directly
   Usz curs_y, curs_x, curs_h, curs_w;
   if (!ged_try_selection_clipped_to_field(a, &curs_y, &curs_x, &curs_h,
                                           &curs_w))