Skip to content

Commit 7257496

Browse files
committed
Merge pull request #297 from hoanhtien/fixDragAndDropException
Add a null check after for .active_view().
2 parents b9f3b14 + fdd9315 commit 7257496

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

typescript/libs/view_helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ def set_file_prefs(view):
175175

176176
def tab_size_changed():
177177
view = active_view()
178+
if view is None:
179+
return
178180
reconfig_file(view)
179181
client_info = cli.get_or_add_file(view.file_name())
180182
client_info.pending_changes = True

0 commit comments

Comments
 (0)