From 14329a6d21272feb06378a6ae39e12c8be4df5e7 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 16 Apr 2024 20:20:20 +0200 Subject: cool --- src/i_insert.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/i_insert.go') diff --git a/src/i_insert.go b/src/i_insert.go index f1838d5..c9dbed6 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -569,6 +569,13 @@ func i_draw_insert_cmd(ui HardUI, line int, win Quad, in *HostNode) int { } i_draw_text_box(ui, win.T + line, win, "Shell", in.Shell[0], INS_CMD_SHELL, red); + if red == true { + if line += 1; win.T + line >= win.B { return line } + text := "file does not exist" + i_draw_text(ui.s, ui.dim[W] / 2, win.T + line, + win.R - 1, win.T + line, ui.style[ERR_STYLE], text) + } + red = false return line } -- cgit v1.2.3