diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-06-13 17:08:42 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-06-13 17:08:42 +1000 |
| commit | 4106791adcdeb3cc67f4d89db144bdc6a01ca032 (patch) | |
| tree | a7436e9907b547f5867879161c4188d1cece428c | |
| parent | 19cbb703a780faadfbef228433ba519aac2a5d15 (diff) | |
Fix windowing detection echoing last module error if none matched
Display a more general message in the debug buffer.
| -rw-r--r-- | rc/windowing/detection.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/windowing/detection.kak b/rc/windowing/detection.kak index 6844c45b..08867c80 100644 --- a/rc/windowing/detection.kak +++ b/rc/windowing/detection.kak @@ -31,11 +31,11 @@ hook -group windowing global KakBegin .* %{ set -- ${kak_opt_windowing_modules} if [ $# -gt 0 ]; then echo 'try %{ ' - while [ $# -gt 1 ]; do + while [ $# -ge 1 ]; do echo "require-module ${1} } catch %{ " shift done - echo "require-module ${1} }" + echo "echo -debug 'no windowing module detected' }" fi } } |
