Fix #2357: C-a moves across lines

This commit is contained in:
Henrik Lissner 2020-01-12 02:09:01 -05:00
parent 5802bd7047
commit 51bb3a2b35
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -159,6 +159,10 @@ beginning of the line. The opposite of
(cond ((> pt bot)
(goto-char bot))
((= pt bol)
(or (and doom--last-backward-pt
(= (line-number-at-pos doom--last-backward-pt)
(line-number-at-pos pt)))
(setq doom--last-backward-pt nil))
(goto-char (or doom--last-backward-pt bot))
(setq doom--last-backward-pt nil))
((<= pt bot)