Skip to content

Commit

Permalink
Merge pull request #913 from ZitCode/temp-fix-completion-bug
Browse files Browse the repository at this point in the history
Completion bug fix in ST4
  • Loading branch information
DamnWidget authored Nov 11, 2021
2 parents 12b334b + a538069 commit 1f03a88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions listeners/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def on_modified(self, view: sublime.View) -> None:
def _complete(self, data: Dict[str, Any]) -> None:

view = active_view()
# Temporary fix for completion bug in ST4
if int(sublime.version()) >= 4000:
if view.substr(view.sel()[0].begin() - 1) == ':' or view.substr(view.sel()[0].begin() - 1) == ')':
return
proposals = data['completions'] if data['success'] else []

if proposals:
Expand Down

0 comments on commit 1f03a88

Please sign in to comment.