ref: eb9fd643a66750a1db1799fa32f8849dc708f90d
parent: 6730b026990f7d9d9606f3c9af7fdd927506e3e0
author: cancel <cancel@cancel.fm>
date: Wed Dec 5 07:32:14 EST 2018
Change resize to use grid ruler increments
--- a/tui_main.c
+++ b/tui_main.c
@@ -639,20 +639,24 @@
++ruler_spacing_y;
break;
case '(':
- tui_resize_grid(&field, &markmap_r, 0, -1, tick_num, &scratch_field,
- &undo_hist, &tui_cursor, &needs_remarking);
+ tui_resize_grid(&field, &markmap_r, 0, -(Isz)ruler_spacing_x, tick_num,
+ &scratch_field, &undo_hist, &tui_cursor,
+ &needs_remarking);
break;
case ')':
- tui_resize_grid(&field, &markmap_r, 0, 1, tick_num, &scratch_field,
- &undo_hist, &tui_cursor, &needs_remarking);
+ tui_resize_grid(&field, &markmap_r, 0, (Isz)ruler_spacing_x, tick_num,
+ &scratch_field, &undo_hist, &tui_cursor,
+ &needs_remarking);
break;
case '_':
- tui_resize_grid(&field, &markmap_r, -1, 0, tick_num, &scratch_field,
- &undo_hist, &tui_cursor, &needs_remarking);
+ tui_resize_grid(&field, &markmap_r, -(Isz)ruler_spacing_y, 0, tick_num,
+ &scratch_field, &undo_hist, &tui_cursor,
+ &needs_remarking);
break;
case '+':
- tui_resize_grid(&field, &markmap_r, 1, 0, tick_num, &scratch_field,
- &undo_hist, &tui_cursor, &needs_remarking);
+ tui_resize_grid(&field, &markmap_r, (Isz)ruler_spacing_y, 0, tick_num,
+ &scratch_field, &undo_hist, &tui_cursor,
+ &needs_remarking);
break;
case '\r':
case KEY_ENTER: