Skip to content

Commit

Permalink
fixed on core
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout committed Jan 30, 2016
1 parent 0dc9392 commit 1f700e6
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Dictionaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,4 @@ def on_done(i):

self.window.show_quick_panel(items, on_done)

class FixBug268And295Command(sublime_plugin.EventListener):

def on_post_text_command(self, view, command_name, args):
if command_name == "ignore_word" and not 'ignore' in args:
if args['word'] == '':
view = sublime.active_window().active_view()
args['word'] = view.substr(view.word(view.sel()[0].a))
view.run_command("ignore_word", {"word": args['word'], 'ignore':True})
s = sublime.load_settings("Preferences.sublime-settings")
ignored_words = s.get("ignored_words", [])
ignored_words.append(args['word'])
s.set("ignored_words", list(set(ignored_words)))
view.settings().set("ignored_words", list(set(ignored_words)))
sublime.save_settings("Preferences.sublime-settings")

0 comments on commit 1f700e6

Please sign in to comment.