mirror of
https://github.com/zhigang1992/AutoFileName.git
synced 2026-01-12 17:12:38 +08:00
Merge pull request #3 from titoBouzout/multiline
1 - Fix for scopes with new lines
This commit is contained in:
@@ -24,7 +24,7 @@ class FileNameComplete(sublime_plugin.EventListener):
|
||||
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user