hints kitten: When using the linenumber action with a background action, preserve the working directory

Fixes #3352
This commit is contained in:
Kovid Goyal 2021-02-27 09:14:12 +05:30
parent 30c7ff341f
commit 945cbca387
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -78,6 +78,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- macOS: Disable the native operating system tabs as they are non-functional
and can be confusing (:iss:`3325`)
- hints kitten: When using the linenumber action with a background action,
preserve the working directory (:iss:`3352`)
0.19.3 [2020-12-19]
-------------------

View File

@ -698,7 +698,7 @@ def linenum_handle_result(args: List[str], data: Dict[str, Any], target_window_i
w.paste_bytes(text + '\r')
elif action == 'background':
import subprocess
subprocess.Popen(cmd)
subprocess.Popen(cmd, cwd=data['cwd'])
else:
getattr(boss, {
'window': 'new_window_with_cwd', 'tab': 'new_tab_with_cwd', 'os_window': 'new_os_window_with_cwd'