branch: externals/mpdired
commit 2578a997f13b0e4e3c1383a5e3498dde7b41a868
Author: Manuel Giraud <[email protected]>
Commit: Manuel Giraud <[email protected]>
fix bug
Don't use `mpdired-next-line' non-interactively as it modify state.
---
mpdired.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mpdired.el b/mpdired.el
index 5c8c08f71a..a509de8d6b 100644
--- a/mpdired.el
+++ b/mpdired.el
@@ -206,7 +206,9 @@
(goto-char (line-beginning-position)))
(t
(goto-char (point-min))
- (if top (mpdired-next-line))))
+ (when top
+ (forward-line)
+ (goto-char (line-beginning-position)))))
;; Set mode and memorize stuff
(mpdired-mode)
(setq mpdired--directory (when top top)