mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-20 16:11:07 -05:00
Fix #2357: C-a moves across lines
This commit is contained in:
@@ -159,6 +159,10 @@ beginning of the line. The opposite of
|
|||||||
(cond ((> pt bot)
|
(cond ((> pt bot)
|
||||||
(goto-char bot))
|
(goto-char bot))
|
||||||
((= pt bol)
|
((= 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))
|
(goto-char (or doom--last-backward-pt bot))
|
||||||
(setq doom--last-backward-pt nil))
|
(setq doom--last-backward-pt nil))
|
||||||
((<= pt bot)
|
((<= pt bot)
|
||||||
|
Reference in New Issue
Block a user