From 46f7b22d6faa918932cbedbfeb9887a73462b679 Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Mon, 12 May 2014 21:30:56 +0400 Subject: [PATCH] Fix the venerable completion replacement bug (closes #8). --- sublime_ocp_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sublime_ocp_index.py b/sublime_ocp_index.py index dbd654d..28fb188 100644 --- a/sublime_ocp_index.py +++ b/sublime_ocp_index.py @@ -120,7 +120,7 @@ def make_result(replacement, rest): actual_replacement = replacement[length:] # Weird sublime bug, if there are no underscores in the replacement it replaces the module name as well - if not '_' in actual_replacement: actual_replacement = replacement + actual_replacement = replacement return replacement + "\t" + rest, actual_replacement