SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 364 forks source link

\cite and \ref fills place {} in the wrong place #1458

Closed johnlb closed 4 years ago

johnlb commented 4 years ago

When I type \cite{ and the autofill window pops up, whether or not I choose an item from the list, it places the brackets one character to the left. So, I end up with \cit{text}e

If I already have a character to the right of the cursor when I call it, it will actually return the correct placement.

This is a fresh install of LaTeXTools.

r-stein commented 4 years ago

do you have a vim emulator in use?

johnlb commented 4 years ago

Haha I do indeed. I'm using Vintageous.

r-stein commented 4 years ago

looks like #1329, closing as duplicate. There is already a PR #1457 to solve this, which will hopefully be merged in the next days