diff options
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 } |