Skip to content

Commit 8d280ef

Browse files
NagyViktclaude
andcommitted
ci: shellcheck + markdownlint fixes on top of v1.25
- bin/flashpaste-logs.sh:118 SC1007 (bare `GRN= RED= WHT=` on the non-TTY branch) — rewritten as `GRN='' RED='' WHT=''`. - bin/flashpaste-logs.sh:206 SC2178/SC2128 — local `prev=""` in `kitty_poller` shadowed `declare -A prev=()` in `claude_state_poller`. Renamed the local to `last` so shellcheck no longer sees an array-vs-string conflict at the function boundary. - CHANGELOG.md:92 MD049/emphasis-style — `_…_` italics on the v1.22 revert note converted to `*…*` to match the rest of the file. Pure CI hygiene on top of v1.25 — no behaviour change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 307ba62 commit 8d280ef

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Release-tag policy: every `vX.Y` commit on `main` must be tagged and have a matc
8989

9090
### Fixed
9191

92-
- `examples/tmux.conf.snippet`: dropped the `-O` flag from the right-click menu binding so the menu auto-dismisses on click-outside / mouse-release-outside. With `-O` the menu held the pane in modal-grab until Escape, which read as the pane being "frozen" after a right-click — most visible in TUIs that grab keystrokes (Claude Code chat input). _Reverted in v1.23 — the freeze repro was on tmux <3.4 and the removal made the menu unusable on 3.6a._
92+
- `examples/tmux.conf.snippet`: dropped the `-O` flag from the right-click menu binding so the menu auto-dismisses on click-outside / mouse-release-outside. With `-O` the menu held the pane in modal-grab until Escape, which read as the pane being "frozen" after a right-click — most visible in TUIs that grab keystrokes (Claude Code chat input). *Reverted in v1.23 — the freeze repro was on tmux <3.4 and the removal made the menu unusable on 3.6a.*
9393

9494
## [1.19] - 2026-05-19
9595

bin/flashpaste-logs.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fi
115115

116116
# ── line prefixers (sed -u keeps streaming, doesn't buffer) ──────────────
117117
# Two more colors for the new streams.
118-
if [ -t 1 ]; then GRN=$'\e[32m' RED=$'\e[31m' WHT=$'\e[37m'; else GRN= RED= WHT=; fi
118+
if [ -t 1 ]; then GRN=$'\e[32m' RED=$'\e[31m' WHT=$'\e[37m'; else GRN='' RED='' WHT=''; fi
119119
pfx_daemon() { sed -u "s|^|${CYN}[daemon] ${OFF}|"; }
120120
pfx_trigger() { sed -u "s|^|${YEL}[trigger]${OFF} |"; }
121121
pfx_pipeline() { sed -u "s|^|${MAG}[pipe] ${OFF}|"; }
@@ -203,7 +203,10 @@ clipboard_poller() {
203203
# Kitty window state poller: emit on focus/count change. Use to debug
204204
# "send-text landed in the wrong window".
205205
kitty_poller() {
206-
local sock prev=""
206+
# `last` (was `prev`) renamed because `claude_state_poller` declares
207+
# `declare -A prev=()` globally — shellcheck (correctly) flagged the
208+
# same name shadowing an associative array with a string.
209+
local sock last=""
207210
for s in "${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"/kitty-main-*; do
208211
[ -S "$s" ] && sock="unix:$s" && break
209212
done
@@ -233,9 +236,9 @@ for ow in d:
233236
if w.get("is_active"): active = w.get("id")
234237
print(f"focused={focused} active={active} count={count}")
235238
' 2>/dev/null)
236-
if [ -n "$cur" ] && [ "$cur" != "$prev" ]; then
239+
if [ -n "$cur" ] && [ "$cur" != "$last" ]; then
237240
printf '%s %s\n' "$ts" "$cur"
238-
prev=$cur
241+
last=$cur
239242
fi
240243
sleep "$CLIPBOARD_INTERVAL"
241244
done

0 commit comments

Comments
 (0)