From 466d8bd4f878d98c8b9d6ab866cbd88eba7bc8de Mon Sep 17 00:00:00 2001 From: Magnar Sveen Date: Mon, 24 Sep 2012 13:49:43 +0200 Subject: [PATCH] Don't use next-line non-interactively --- multiple-cursors-core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el index 233eff5..6e37c63 100644 --- a/multiple-cursors-core.el +++ b/multiple-cursors-core.el @@ -398,7 +398,7 @@ for running commands with multiple cursors.") (insert "(setq mc/cmds-to-run-for-all '(") (mapc #'(lambda (cmd) (insert (format "%S" cmd)) (newline-and-indent)) mc/cmds-to-run-for-all) (when mc/cmds-to-run-for-all - (next-line -1) + (forward-line -1) (end-of-line)) (insert "))") (newline) @@ -406,7 +406,7 @@ for running commands with multiple cursors.") (insert "(setq mc/cmds-to-run-once '(") (mapc #'(lambda (cmd) (insert (format "%S" cmd)) (newline-and-indent)) mc/cmds-to-run-once) (when mc/cmds-to-run-once - (next-line -1) + (forward-line -1) (end-of-line)) (insert "))") (newline)))