Skip to content

Commit

Permalink
Disable surrounding text by default
Browse files Browse the repository at this point in the history
If surrounding text is enabled, ibus_query_surrounding_text_cb will be
called and input keys won't be processed.
  • Loading branch information
shirosaki committed Apr 20, 2013
1 parent fe3b004 commit 58b5fcb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion sublimeibus/sublime-ibus-agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def print_message(message):
action="store_true", dest="quit", default=False,
help="quit if ibus-daemon is not running")
parser.add_option("-s", "--surrounding-text",
action="store_true", dest="surrounding_text", default=True,
action="store_true", dest="surrounding_text", default=False,
help="enable surrounding text support")
options, args = parser.parse_args()
if options.quit:
Expand Down
3 changes: 0 additions & 3 deletions sublimeibusplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,6 @@ def run(self, edit, key, alt=False, ctrl=False, shift=False, super=False):
if self.view.settings().get('is_widget'):
return

# TODO Why required this?
command.set_status(True)

keysym = self.table.get(key, None)
if keysym is not None:
status.key = key
Expand Down

0 comments on commit 58b5fcb

Please sign in to comment.