Expand ~ in the path argument for linenum in hints

Fixes #2822
This commit is contained in:
Trygve Aaberge 2020-07-02 00:59:51 +02:00
parent 9f751d8715
commit d509a4fa8c

View File

@ -559,7 +559,7 @@ def linenum_handle_result(args: List[str], data: Dict[str, Any], target_window_i
for m, g in zip(data['match'], data['groupdicts']):
if m:
path, line = g['path'], g['line']
path = path.split(':')[-1]
path = os.path.expanduser(path.split(':')[-1])
line = int(line)
break
else: