From 9970f0da036ce01fcdeb8b8e8f24be1ea576a5fa Mon Sep 17 00:00:00 2001 From: mechatroner Date: Sun, 18 Aug 2019 09:59:52 -0400 Subject: [PATCH] fix --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index c241153..35385dd 100644 --- a/main.py +++ b/main.py @@ -30,8 +30,6 @@ # TODO support multi-character separators -# FIXME check RBQL both with latin-1 and utf-8 - rainbow_scope_names = [ 'rainbow1', @@ -745,7 +743,7 @@ def run(self, edit): previous_query = self.view.settings().get('rbql_previous_query', '') backend_language = get_backend_language(self.view) pretty_language_name = prettify_language_name(backend_language) - encoding = get_setting(active_view, 'rbql_encoding', 'latin-1') + encoding = get_setting(self.view, 'rbql_encoding', 'latin-1') active_window.show_input_panel('Enter SQL-like RBQL query ({}/{}):'.format(pretty_language_name, encoding), previous_query, on_query_done, None, on_query_cancel) self.view.settings().set('rbql_mode', True) show_column_names(self.view, delim, policy)