Skip to content

Commit 09c96f2

Browse files
committed
tmp
1 parent 280a8a5 commit 09c96f2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

open_include.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,14 @@ def open(self, window, path, rows = None):
526526
if get_setting('in_secondary_colum', False):
527527
window.run_command('set_layout', {"cols": [0.0, 0.5, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]})
528528
window.focus_group(1)
529-
window.open_file(path)
529+
view = window.open_file(path)
530+
while view.is_loading():
531+
pass
530532

531533
if rows is not None:
532534
start_row, end_row = min(rows), max(rows)
533535

534-
view = window.active_view()
536+
# view = window.active_view()
535537
start_point = view.text_point(start_row - 1, 0)
536538
end_point = view.text_point(end_row, 0) - 1
537539

0 commit comments

Comments
 (0)