diff options
author | Glenn Morris <rgm@gnu.org> | 2009-08-22 19:29:18 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2009-08-22 19:29:18 +0000 |
commit | e6ce8c4239a0b7003430d94a5f591e1d4ad50213 (patch) | |
tree | 17852bba62da89f449af8c75f4fe50a3fb89852f /lisp/textmodes/two-column.el | |
parent | a569b4801085fa14c3bd0d153e389636645908b9 (diff) | |
download | emacs-e6ce8c4239a0b7003430d94a5f591e1d4ad50213.tar.gz emacs-e6ce8c4239a0b7003430d94a5f591e1d4ad50213.tar.bz2 emacs-e6ce8c4239a0b7003430d94a5f591e1d4ad50213.zip |
Use forward-line rather than goto-line.
Diffstat (limited to 'lisp/textmodes/two-column.el')
-rw-r--r-- | lisp/textmodes/two-column.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el index d8d298909c1..c393e1d9bcd 100644 --- a/lisp/textmodes/two-column.el +++ b/lisp/textmodes/two-column.el @@ -537,7 +537,8 @@ off trailing spaces with \\[delete-trailing-whitespace]." (if (get-buffer-window (2C-other t)) (select-window (get-buffer-window (2C-other))) (switch-to-buffer (2C-other))) - (newline (goto-line line)) + (goto-char (point-min)) + (newline (forward-line (1- line))) (if col (move-to-column col) (end-of-line 1)))) |