Fix dired-omit-files regexp (Bug#35668)

* lisp/dired-x.el (dired-omit-files): Match beginning and end of
string, rather than beginning and end of line.
This commit is contained in:
Noam Postavsky 2019-05-12 12:42:35 -04:00
parent d0e9113de9
commit d7c8196c96

View file

@ -159,7 +159,7 @@ See Info node `(dired-x) Omitting Variables' for more information."
(put 'dired-omit-mode 'safe-local-variable 'booleanp)
(defcustom dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$"
(defcustom dired-omit-files "\\`[.]?#\\|\\`[.][.]?\\'"
"Filenames matching this regexp will not be displayed.
This only has effect when `dired-omit-mode' is t. See interactive function
`dired-omit-mode' (\\[dired-omit-mode]) and variable