mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 15:35:03 +02:00
hints kitten: When using the linenumber action with a background action, preserve the working directory
Fixes #3352
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user