aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-24 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-24 20:20:20 +0200
commit26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb (patch)
treef6754c158826a4b383c67bc5a01b8584c4c8ae8e /src/e_keys.go
parentgo (diff)
downloadhardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.gz
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.bz2
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.xz
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.tar.zst
hardflip-26b787e8781f8e0ff7638a8a3e2c4af4d660cdfb.zip
ok cool now
Diffstat (limited to 'src/e_keys.go')
-rw-r--r--src/e_keys.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index 3a60a98..8872039 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -52,7 +52,6 @@
package main
import (
- "fmt"
"os"
"strconv"
"strings"
@@ -188,10 +187,11 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
" (" + data.yank.Host.parent.path() + data.yank.Host.filename + ")"
} else if event.Rune() == 'p' && data.yank != nil {
// TODO: here
- new_item := e_paste_prepare_item(data.yank)
- e_paste_item(data.litems, new_item)
+ new_host := e_paste_prepare_item(data.yank)
+ // e_paste_item(data.litems, new_item)
+ i_insert_host(data, &new_host)
data.yank = nil
- ui.msg_buff = "pasted " + new_item.Host.Name
+ ui.msg_buff = "pasted " + new_host.Name
}
return false
}