Rename `panel_view` -> `panel`
@@ -28,10 +28,10 @@ class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand):
window = self.window
if is_panel_active(window):
- panel_view = window.find_output_panel(PANEL_NAME)
+ panel = window.find_output_panel(PANEL_NAME)
else:
- panel_view = window.create_output_panel(PANEL_NAME)
- settings = panel_view.settings()
+ panel = window.create_output_panel(PANEL_NAME)
+ settings = panel.settings()
for key, value in OUTPUT_PANEL_SETTINGS.items():
settings.set(key, value)
@@ -41,15 +41,15 @@ class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand):
except Exception:
return
- panel_view.assign_syntax(syntax_path)
+ panel.assign_syntax(syntax_path)
- scroll_to = panel_view.size()
+ scroll_to = panel.size()
msg = msg.rstrip() + '\n\n\n'
- panel_view.set_read_only(False)
- panel_view.run_command('append', {'characters': msg})
- panel_view.set_read_only(True)
- panel_view.show(scroll_to)
+ panel.set_read_only(False)
+ panel.run_command('append', {'characters': msg})
+ panel.set_read_only(True)
+ panel.show(scroll_to)
window.run_command("show_panel", {"panel": OUTPUT_PANEL})
