Skip to content

Commit

Permalink
Merge pull request #108 from rzoller/ST3
Browse files Browse the repository at this point in the history
Convert line_number to int, fixes #105
  • Loading branch information
danmoseley committed Feb 29, 2016
2 parents 9df84b3 + 3a30b26 commit 9d47100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ def open_script_and_focus_line_by_filename(file_name, line_number):
do_when(lambda: not v.is_loading(), lambda: open_script_and_focus_line_callback(v, line_number))

def open_script_and_focus_line_callback(v, line_number):
goto_line_number = line_number + 1 # goto_line is 1-based
goto_line_number = int(line_number) + 1 # goto_line is 1-based
v.run_command("goto_line", {"line": goto_line_number})
update_overlays()

Expand Down

0 comments on commit 9d47100

Please sign in to comment.