We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8059c9a commit 654f32fCopy full SHA for 654f32f
src/libtmux/common.py
@@ -7,6 +7,7 @@
7
8
import logging
9
import re
10
+import shlex
11
import shutil
12
import subprocess
13
import sys
@@ -478,7 +479,11 @@ def has_target_in_args(val: t.List[t.Any]) -> bool:
478
479
return False
480
return True
481
elif item.startswith("-t"):
- 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
487
488
489
0 commit comments