Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
textmate will complete rest of the word rather than re-insert it
Browse files Browse the repository at this point in the history
  • Loading branch information
orestis committed Nov 5, 2008
1 parent eb80dc1 commit b5d5cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysmell/textmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _main(cur_file, line_no, cur_col):
return TOOLTIP
if len(completions) == 1:
new_word = completions[0]['word']
write(new_word)
write(new_word[len(base):])
elif len(completions) > 1:
dialogTuples = [
(
Expand All @@ -67,5 +67,5 @@ def _main(cur_file, line_no, cur_col):
write(traceback.format_exc(e))
return TOOLTIP
if compIndex is not None:
write(completions[compIndex]['word'])
write(completions[compIndex]['word'][len(base):])

0 comments on commit b5d5cfe

Please sign in to comment.