Kindari / SublimeXdebug

Xdebug Interface for Sublime Text 2
Other
367 stars 66 forks source link

Horizontal scroll position #68

Open dietrich-stein opened 11 years ago

dietrich-stein commented 11 years ago

I am using martomo's fork now because it behaves better than the klasscuvelier fork under SublimeText 3. Anyway, I noticed that when stepping into files the horizontal scroll position is not fully to the left making it very difficult to see what is going on without manually resetting it; which is quite a hassle. I added the following lines at the end of the show_file() function. It now resets to the left but not immediately, only after an additional call to xdebug_continue. Has anyone else seen this issue or have any ideas to make the reset immediate?

vpos = view.viewport_position()
view.set_viewport_position((0.0, vpos[1]))