Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Work around fixing issue #1

  • Loading branch information...
commit 86bb7c9039353504d22b2104c1edb1f96fcab0df 1 parent 178e638
@quarnster authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 sublimegdb.py
View
10 sublimegdb.py
@@ -188,7 +188,13 @@ def do_scroll(self, data):
self.view.run_command("goto_line", {"line": data + 1})
def do_set_viewport_position(self, data):
- self.view.set_viewport_position(data, True)
+ # Shouldn't have to call viewport_extent, but it
+ # seems to flush whatever value is stale so that
+ # the following set_viewport_position works.
+ # Keeping it around as a WAR until it's fixed
+ # in Sublime Text 2.
+ self.view.viewport_extent()
+ self.view.set_viewport_position(data, False)
def update(self):
if not self.is_open():
@@ -582,8 +588,6 @@ def expand_collapse_variable(self, view, expand=True, toggle=False):
var.collapse()
pos = view.viewport_position()
self.update_view()
- self.update()
- self.scroll(row)
self.set_viewport_position(pos)
self.update()
Please sign in to comment.
Something went wrong with that request. Please try again.