jbrooksuk / Sublime-Evaluate

Selection evaluation in Sublime Text
https://james-brooks.uk
25 stars 6 forks source link

Cursor jumps to the old length of the selection after evaluation #5

Closed jafd closed 8 years ago

jafd commented 8 years ago

Here's the problem:

1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1

it evaluates to 9, which is 1 character long, but the cursor jumps 33 characters to the right. This disturbs the flow: you meant to insert some text right after the sum, and ended up damaging the next paragraph.

jbrooksuk commented 8 years ago

👍 I'll fix this.

jbrooksuk commented 8 years ago

Fixed!