sfm

simple file manager
git clone git://git.afify.dev/sfm
Log | Files | Refs | README | LICENSE

commit 9e5b09ca5d4769f0c47a62c617727203015ff84e
parent f35e71bebd6df1846bf3780be767b31db6cd480f
Author: afify <hassan@afify.dev>
Date:   Sat, 26 Jun 2021 21:31:11 +0300

[fix] get_usrinput() catch RESIZE event

- while getting user input:
	catch TB_EVENT_RESIZE and set cursor at last position

Diffstat:
Msfm.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/sfm.c b/sfm.c @@ -981,6 +981,15 @@ get_usrinput(char *out, size_t sout, const char *fmt, ...) tb_present(); break; + case TB_EVENT_RESIZE: + t_resize(); + clear_status(); + print_tb(buf, 1, height - 1, col.fg, col.bg); + print_tb(out, startat + 1, height - 1, cstatus.fg, + cstatus.bg); + tb_present(); + break; + default: return -1; }