Sublime Forum

Bug? Plugin API gives wrong position with multiple views

#1

I am experiencing an issue where having multiple views into the same file causes strange behavior when using the plugin API to find the caret location. A simple plugin which prints the position of the caret (print view.sel()[0].begin()) gives the wrong location when editing the second view, but the correct location when editing the original view. It is always finding the location of the caret in the first view of the file.

0 Likes