dired-hacks icon indicating copy to clipboard operation
dired-hacks copied to clipboard

dired-subtree-insert doesn't work when cursor on '.' or '..' (with fix)

Open notuntoward opened this issue 4 years ago • 2 comments

On line 489 of dired-subtree.el, the code:

(let* ((dir-name (dired-get-filename nil))

should be:

(let* ((dir-name (dired-get-filename nil t))

If 't' is included in the arguments of dired-get-filename then dired-subtree-insert works when the cursor is on '.' or '..'. Without the 't', it errors out.

The call to dired-get-filename is correct elsewhere.

notuntoward avatar Nov 21 '19 02:11 notuntoward