Skip to content

Commit

Permalink
fix issue #106. disable call signature completion on opening bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
srusskih committed Jan 11, 2014
1 parent f08e35c commit 7bd05fd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sublime_jedi/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sublime
import sublime_plugin

from .utils import is_python_scope, ask_daemon
from .utils import is_python_scope, ask_daemon, get_settings
from .console_logging import getLogger

logger = getLogger(__name__)
Expand Down Expand Up @@ -32,7 +32,8 @@ def run(self, edit, characters='('):
# logger.info('no function args completion in strings')
# return

ask_daemon(self.view, self.show_template, 'funcargs', self.view.sel()[0].end())
if get_settings(self.view)['complete_funcargs']:
ask_daemon(self.view, self.show_template, 'funcargs', self.view.sel()[0].end())

@property
def auto_match_enabled(self):
Expand All @@ -46,7 +47,7 @@ def _insert_characters(self, edit, open_pair, close_pair):
If sublime option `auto_match_enabled` turned on, next behavior have to be:
when none selection
when none selection
`( => (<caret>)`
`<caret>1 => ( => (<caret>1`
Expand All @@ -57,7 +58,7 @@ def _insert_characters(self, edit, open_pair, close_pair):
In other case:
when none selection
when none selection
`( => (<caret>`
Expand Down

0 comments on commit 7bd05fd

Please sign in to comment.