Permalink
Browse files

Merge pull request #3 from titoBouzout/multiline

1 - Fix for scopes with new lines
  • Loading branch information...
2 parents ea8a86e + 1c5bef9 commit 13ba8bb0820ed565fedd54b8c1be96df371329e4 @BoundInCode committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 autofilename.py
View
@@ -24,7 +24,7 @@ def on_query_completions(self, view, prefix, locations):
this_dir = os.path.split(view.file_name())[0] + os.path.sep
- cur_path = view.substr(view.extract_scope(sel-1))
+ cur_path = view.substr(view.extract_scope(sel-1)).replace('\r\n', '\n').split('\n')[0]
if cur_path.startswith(("'","\"")):
cur_path = cur_path[1:-1]

0 comments on commit 13ba8bb

Please sign in to comment.