avy.el (avy--line-cands): Don't set temporary-goal-column

This was introduced when fixing `avy-goto-line' for the combination of
`org-indent-mode' and `visual-line-mode'. Tested that removing it does
not cause a regression.

Re #110
Fixes #302
This commit is contained in:
Oleh Krehel 2020-04-21 12:27:27 +02:00
parent 954774d6e9
commit aa35412375

4
avy.el
View File

@ -1612,9 +1612,7 @@ When BOTTOM-UP is non-nil, display avy candidates from top to bottom"
(point)))
(selected-window)) candidates))
(if visual-line-mode
(progn
(setq temporary-goal-column 0)
(line-move-visual 1 t))
(line-move-visual 1 t)
(forward-line 1)))))))
(if bottom-up
candidates