mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
...
This commit is contained in:
parent
6880ecaa28
commit
a783d4932e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue