diff options
| author | Eli Zaretskii | 2017-05-18 22:54:35 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-05-18 22:54:35 +0300 |
| commit | f6816a659c61d26d2d3328f34e43280b4ae1cf09 (patch) | |
| tree | 4457568088ecb0110fb1e29d6318f5e29a55bfb6 | |
| parent | 8deef1d6a7bf620abf4219b6471883381b817724 (diff) | |
| download | emacs-f6816a659c61d26d2d3328f34e43280b4ae1cf09.tar.gz emacs-f6816a659c61d26d2d3328f34e43280b4ae1cf09.zip | |
Fix last change in line-move-finish
* lisp/simple.el (line-move-finish): Fix last change. This corrects a
regression in C-n and C-p when lines are truncated, introduced by the
change in 2017-05-10.
| -rw-r--r-- | lisp/simple.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index dfa30372dda..7f13df5006d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6399,7 +6399,8 @@ If NOERROR, don't signal an error if we can't move that many lines." | |||
| 6399 | (point)))) | 6399 | (point)))) |
| 6400 | 6400 | ||
| 6401 | ;; Move to the desired column. | 6401 | ;; Move to the desired column. |
| 6402 | (if line-move-visual | 6402 | (if (and line-move-visual |
| 6403 | (not (or truncate-lines truncate-partial-width-windows))) | ||
| 6403 | ;; Under line-move-visual, goal-column should be | 6404 | ;; Under line-move-visual, goal-column should be |
| 6404 | ;; interpreted in units of the frame's canonical character | 6405 | ;; interpreted in units of the frame's canonical character |
| 6405 | ;; width, which is exactly what vertical-motion does. | 6406 | ;; width, which is exactly what vertical-motion does. |