Use selection.start instead of anchor
Use selection.start instead of anchor

The anchor is impacted by the direction of the selection

James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop