Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 9b79dba

Browse files
committed
do not move to a line when opening a document
1 parent 8b83639 commit 9b79dba

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pugdebug/pugdebug.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def file_browser_item_activated(self, index):
219219
if path is not None:
220220
self.open_document(path, False)
221221

222-
def open_document(self, path, map_paths=True, line=None):
222+
def open_document(self, path, map_paths=True):
223223
"""Open a document
224224
225225
If a document is not already open, open it and add it as a new
@@ -266,19 +266,11 @@ def open_document(self, path, map_paths=True, line=None):
266266
document_model.filename,
267267
path
268268
)
269-
270-
# If a line is given, move to that line
271-
if line:
272-
document_widget.move_to_line(line)
273269
else:
274270
# Just focus the tab that has the opened document
275271
index = self.document_viewer.find_tab_index_by_path(path)
276272
self.document_viewer.setCurrentIndex(index)
277273

278-
# If a line is given, move to that line
279-
if line:
280-
self.document_viewer.get_document(index).move_to_line(line)
281-
282274
def handle_document_double_click(self, path, line_number):
283275
"""Handle when a document gets double clicked
284276

0 commit comments

Comments
 (0)