Skip to content

Commit 4662f12

Browse files
trekdemokelvinst
andcommitted
Fix Kitty window_id retrieval
The Kitty handler was failing to get the window_id and exiting with code 1, causing dispatch to fallback to alternative handlers (jobstart, terminal, etc). This resulted in duplicate jobs. In some environments additional (special) characters follow the window ID. Co-authored-by: Kelvin Stinghen <kelvin.stinghen@me.com>
1 parent 53defe1 commit 4662f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch/kitty.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function! s:make(request) abort
5656

5757
let cmd = s:kitty_launch_cmd(type, a:request, dispatch#prepare_start(a:request, cmd_with_capturing, 'make'))
5858
let output = system(cmd)
59-
let window_id = matchstr(output, '^\d\+$')
59+
let window_id = matchstr(output, '\d\+')
6060

6161
if !empty(window_id)
6262
let s:waiting[window_id] = a:request

0 commit comments

Comments
 (0)