Skip to content

Commit c721b69

Browse files
MiguelBarrochrisbra
authored andcommitted
runtime(termdebug): update v:shell_error condition test.
vim9 conditions only admit 0 or 1 integers, however the return value of shells is not limited to either 0 or 1 (e.g. powershell) closes: #19010 Signed-off-by: Miguel Barro <miguel.barro@live.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent a8a0ee5 commit c721b69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ vim9script
44

55
# Author: Bram Moolenaar
66
# Copyright: Vim license applies, see ":help license"
7-
# Last Change: 2025 Oct 08
7+
# Last Change: 2025 Dec 26
88
# Converted to Vim9: Ubaldo Tiberi <ubaldo.tiberi@gmail.com>
99

1010
# WORK IN PROGRESS - The basics works stable, more to come
@@ -454,7 +454,7 @@ def GetRemotePtyCmd(gdb_cmd: list<string>): list<string>
454454
term_cmd = gdb_cmd[0 : gdb_pos - 1]
455455
# roundtrip to check if socat is available on the remote side
456456
silent call system(join(term_cmd, ' ') .. ' socat -h')
457-
if v:shell_error
457+
if v:shell_error != 0
458458
Echowarn('Install socat on the remote machine for a program window better experience')
459459
else
460460
# create a devoted tty slave device and link to stdin/stdout

0 commit comments

Comments
 (0)