diff options
author | Joe <rbo@gmx.us> | 2024-04-18 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-18 20:20:20 +0200 |
commit | 69c34b1290ed8759dadeb1c6748c37e5a7c78ae4 (patch) | |
tree | 0e4e19e301cdc9eca6e5a6f4e7cb13fc59fb1d85 /src/i_events.go | |
parent | add (diff) | |
download | hardflip-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.go | 6 |
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: |