mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #4877: dired not sorting directories first
On macOS and Linux, because ls-lisp hasn't been loaded yet.
This commit is contained in:
@ -43,7 +43,8 @@ uncertain that they are supported (e.g. over TRAMP or on Windows).
|
|||||||
Fixes #1703: dired over TRAMP displays a blank screen.
|
Fixes #1703: dired over TRAMP displays a blank screen.
|
||||||
Fixes #3939: unsortable dired entries on Windows."
|
Fixes #3939: unsortable dired entries on Windows."
|
||||||
(when (or (file-remote-p default-directory)
|
(when (or (file-remote-p default-directory)
|
||||||
(not (bound-and-true-p ls-lisp-use-insert-directory-program)))
|
(and (boundp 'ls-lisp-use-insert-directory-program)
|
||||||
|
(not ls-lisp-use-insert-directory-program)))
|
||||||
(setq-local dired-actual-switches (car args))))))
|
(setq-local dired-actual-switches (car args))))))
|
||||||
|
|
||||||
;; Don't complain about this command being disabled when we use it
|
;; Don't complain about this command being disabled when we use it
|
||||||
|
Reference in New Issue
Block a user