Address code scanning alerts

This commit is contained in:
Junegunn Choi
2026-05-25 14:31:51 +09:00
parent 7963a2c658
commit 25868a62f7
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -6829,7 +6829,7 @@ func (t *Terminal) Loop() error {
changed = true
// Deselect items that are now part of the header
for idx := range t.selected {
if idx < int32(n) {
if int(idx) < n {
delete(t.selected, idx)
}
}