Fix prelude-smart-open-line-above

This commit is contained in:
toctan 2013-05-30 11:18:18 +08:00
parent fb1164e37f
commit 3ef47f48fb

View file

@ -85,8 +85,10 @@ With a prefix ARG always prompt for command to use."
"Insert an empty line above the current line. "Insert an empty line above the current line.
Position the cursor at it's beginning, according to the current mode." Position the cursor at it's beginning, according to the current mode."
(interactive) (interactive)
(move-beginning-of-line nil)
(newline-and-indent)
(forward-line -1) (forward-line -1)
(prelude-smart-open-line)) (funcall indent-line-function))
(defun prelude-smart-open-line () (defun prelude-smart-open-line ()
"Insert an empty line after the current line. "Insert an empty line after the current line.