From 4372cac51721af550fa3ff4ecf33bdc9097d2d59 Mon Sep 17 00:00:00 2001 From: Reginald Tan Date: Mon, 25 May 2015 10:27:39 -0400 Subject: [PATCH] fix undefined view_is_widget error --- SublimeBlockCursor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SublimeBlockCursor.py b/SublimeBlockCursor.py index 8f52de6..d31dbe0 100644 --- a/SublimeBlockCursor.py +++ b/SublimeBlockCursor.py @@ -3,7 +3,7 @@ class SublimeBlockCursor(sublime_plugin.EventListener): - def view_is_widget(view): + def view_is_widget(self,view): settings = view.settings() return bool(settings.get('is_widget')) @@ -22,7 +22,7 @@ def on_selection_modified(self, view): is_vintage_mode = "Vintage" not in view.settings().get('ignored_packages', []) command_mode = view.settings().get('command_mode') - if view_is_widget(view) or (is_vintage_mode and not command_mode): + if self.view_is_widget(view) or (is_vintage_mode and not command_mode): view.erase_regions('SublimeBlockCursorListener') return