aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-18 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-18 20:20:20 +0200
commit69c34b1290ed8759dadeb1c6748c37e5a7c78ae4 (patch)
tree0e4e19e301cdc9eca6e5a6f4e7cb13fc59fb1d85 /src/i_events.go
parentadd (diff)
downloadhardflip-69c34b1290ed8759dadeb1c6748c37e5a7c78ae4.tar.gz
hardflip-69c34b1290ed8759dadeb1c6748c37e5a7c78ae4.tar.bz2
hardflip-69c34b1290ed8759dadeb1c6748c37e5a7c78ae4.tar.xz
hardflip-69c34b1290ed8759dadeb1c6748c37e5a7c78ae4.tar.zst
hardflip-69c34b1290ed8759dadeb1c6748c37e5a7c78ae4.zip
go
Diffstat (limited to '')
-rw-r--r--src/i_events.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 41cee0f..7aad44a 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -487,6 +487,12 @@ func i_events(data *HardData) {
} else if event.Rune() == 'm' ||
event.Key() == tcell.KeyF7 {
data.ui.mode = MKDIR_MODE
+ } else if event.Rune() == 'y' {
+ if data.litems.curr == nil ||
+ data.litems.curr.is_dir() == true {
+ break
+ }
+ data.yank = data.litems.curr
}
i_list_follow_cursor(data.litems, ui)
case DELETE_MODE: