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

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)))