From a99759398841d86928c7ad4d8248f907765cbeb2 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sat, 27 Jul 2019 08:31:24 +0100 Subject: add crop-to-visible function (C) --- draw.c | 1 + 1 file changed, 1 insertion(+) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 9e20601..9724a1f 100644 --- a/draw.c +++ b/draw.c @@ -303,6 +303,7 @@ void visual_box(FILE *fc){ f = get_key(fc, "fill char: "); /** FALLTHROUGH **/ case 'x':/* erase */ erase_box(orig_x, orig_y, f); + erase_blank_lines(MIN(y,orig_y), MAX(y, orig_y)); modified = 1; goto vis_exit; break; -- cgit v1.2.3