aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_insert.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-03-14 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-03-14 20:20:20 +0100
commit493ab5462dad55d525fd623b534769651b550afe (patch)
tree2509e82821f14c290d487a57cdbe0b9c34dd3904 /src/i_insert.go
parentnice (diff)
downloadhardflip-493ab5462dad55d525fd623b534769651b550afe.tar.gz
hardflip-493ab5462dad55d525fd623b534769651b550afe.tar.bz2
hardflip-493ab5462dad55d525fd623b534769651b550afe.tar.xz
hardflip-493ab5462dad55d525fd623b534769651b550afe.tar.zst
hardflip-493ab5462dad55d525fd623b534769651b550afe.zip
port
Diffstat (limited to '')
-rw-r--r--src/i_insert.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/i_insert.go b/src/i_insert.go
index 7d5a6ed..a0f629f 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_insert.go
- * Fri Mar 01 15:35:55 2024
+ * Thu Mar 14 10:18:40 2024
* Joe
*
* insert a new host
@@ -123,7 +123,7 @@ func i_draw_insert_ssh(ui HardUI, line int, win Quad, in *HostNode) {
false)
if line += 1; win.T + line >= win.B { return }
i_draw_text_box(ui, win.T + line, win, "Port", strconv.Itoa(int(in.Port)),
- 2, ui.insert_sel, false)
+ 2, ui.insert_sel, false);
if line += 2; win.T + line >= win.B { return }
i_draw_text_box(ui, win.T + line, win, "User", in.User, 3, ui.insert_sel,
false)
@@ -157,5 +157,8 @@ func i_draw_insert_ssh(ui HardUI, line int, win Quad, in *HostNode) {
if line += 2; win.T + line >= win.B { return }
i_draw_text_box(ui, win.T + line, win, "Host/IP",
in.Jump.Host, 6, ui.insert_sel, false)
+ if line += 1; win.T + line >= win.B { return }
+ i_draw_text_box(ui, win.T + line, win, "Port",
+ strconv.Itoa(int(in.Jump.Port)), 7, ui.insert_sel, false)
// TODO: here
}