mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 04:03:16 +02:00
...
This commit is contained in:
@@ -51,7 +51,7 @@ func (h *Handler) initialize_save_file_name() {
|
||||
if len(h.state.selections) > 0 {
|
||||
if q, err := filepath.Abs(h.state.selections[0]); err == nil {
|
||||
if s, err := os.Stat(q); err == nil {
|
||||
if s.IsDir() && h.state.mode.OnlyDirs() {
|
||||
if s.IsDir() == h.state.mode.OnlyDirs() {
|
||||
cdir = filepath.Dir(q)
|
||||
fname = filepath.Base(q)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user