Merge pull request #2045 from DiGitHubCap/fix-visual-lines

Fix #2044: broken header movement with visual-line-mode
This commit is contained in:
Dirk-Jan C. Binnema 2021-07-11 22:21:15 +03:00 committed by GitHub
commit 40b5b89775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1846,7 +1846,8 @@ docid. Otherwise, return nil."
(cl-flet ((goto-next-line
(arg)
(condition-case _err
(and (line-move arg) 0)
(and (let (line-move-visual)
(line-move arg)) 0)
((beginning-of-buffer end-of-buffer)
1))))
(let* ((_succeeded (zerop (goto-next-line lines)))