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

Commit a101c8e

Browse files
authored
Merge pull request #103 from mtxr/clear_output_fix
Fixed "clear_output" for panel output
2 parents fe9f912 + 736c024 commit a101c8e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SQLTools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ def toNewTab(content, name="", suffix="SQLTools Saved Query"):
140140

141141
def getOutputPlace(syntax=None, name="SQLTools Result"):
142142
if not settings.get('show_result_on_window', True):
143-
resultContainer = Window().create_output_panel(name)
143+
resultContainer = Window().find_output_panel(name)
144+
if resultContainer is None:
145+
resultContainer = Window().create_output_panel(name)
144146
Window().run_command("show_panel", {"panel": "output." + name})
145147
else:
146148
resultContainer = None

SQLTools.sublime-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"thread_timeout" : 15, // query timeout in seconds
77
"history_size" : 100,
88
"show_result_on_window" : false,
9-
"clear_output" : false,
9+
"clear_output" : true,
1010
"safe_limit" : false,
1111
"show_query" : false,
1212
"expand_to_paragraph" : false,

0 commit comments

Comments
 (0)