aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_events.go')
-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: