Skip to content

Commit

Permalink
Fix where aliases would be displayed when ~/ specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
skuroda committed Mar 20, 2013
1 parent 2d5ddc9 commit a09ea16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AdvancedNewFile.py
Expand Up @@ -202,7 +202,7 @@ def show_filename_input(self, initial=''):

def update_filename_input(self, path_in):
base, path = self.split_path(path_in)
if self.top_level_split_char in path_in:
if self.top_level_split_char in path_in or re.match(r"^~[/\\]", path_in):
PathAutocomplete.set_root(base, False)
else:
PathAutocomplete.set_root(base, True)
Expand Down

0 comments on commit a09ea16

Please sign in to comment.