diff options
author | Joe <rbo@gmx.us> | 2024-04-16 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-16 20:20:20 +0200 |
commit | 14329a6d21272feb06378a6ae39e12c8be4df5e7 (patch) | |
tree | c96863a880ba36dc9e0294ec1b1833b16d61ab06 /src/i_insert.go | |
parent | qwe (diff) | |
download | hardflip-14329a6d21272feb06378a6ae39e12c8be4df5e7.tar.gz hardflip-14329a6d21272feb06378a6ae39e12c8be4df5e7.tar.bz2 hardflip-14329a6d21272feb06378a6ae39e12c8be4df5e7.tar.xz hardflip-14329a6d21272feb06378a6ae39e12c8be4df5e7.tar.zst hardflip-14329a6d21272feb06378a6ae39e12c8be4df5e7.zip |
cool
Diffstat (limited to 'src/i_insert.go')
-rw-r--r-- | src/i_insert.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |