##// END OF EJS Templates
Improved Windows path completion....
tmr232 -
Show More
@@ -216,7 +216,11 b' def completions_sorting_key(word):'
216 216 class Bunch(object): pass
217 217
218 218
219 DELIMS = ' \t\n`!@#$^&*()=+[{]}\\|;:\'",<>?'
219 if sys.platform == 'win32':
220 DELIMS = ' \t\n`!@#$^&*()=+[{]}|;\'",<>?'
221 else:
222 DELIMS = ' \t\n`!@#$^&*()=+[{]}\\|;:\'",<>?'
223
220 224 GREEDY_DELIMS = ' =\r\n'
221 225
222 226
@@ -729,7 +733,10 b' class IPCompleter(Completer):'
729 733 return [text_prefix + cast_unicode_py2(protect_filename(f)) for f in self.glob("*")]
730 734
731 735 # Compute the matches from the filesystem
732 m0 = self.clean_glob(text.replace('\\',''))
736 if sys.platform == 'win32':
737 m0 = self.clean_glob(text)
738 else:
739 m0 = self.clean_glob(text.replace('\\', ''))
733 740
734 741 if has_protectables:
735 742 # If we had protectables, we need to revert our changes to the
General Comments 0
You need to be logged in to leave comments. Login now