Skip to content

Commit 654f32f

Browse files
committed
!squash more
1 parent 8059c9a commit 654f32f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/libtmux/common.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import logging
99
import re
10+
import shlex
1011
import shutil
1112
import subprocess
1213
import sys
@@ -478,7 +479,11 @@ def has_target_in_args(val: t.List[t.Any]) -> bool:
478479
return False
479480
return True
480481
elif item.startswith("-t"):
481-
return True
482+
target_val = item.split("-t")[1]
483+
try:
484+
return len(shlex.split(target_val)) == 1
485+
except ValueError:
486+
return False
482487
return False
483488

484489

0 commit comments

Comments
 (0)