lotabout.skim/tests
VXNCXNX 94022921a3
fix(field): an out-of-range field index silently matches field 1 (#1155)
* fix(field): saturate out-of-range field indices to i32 bounds

Replace unwrap_or(1)/unwrap_or(-1) with saturation to i32 bounds so out-of-range indices don't silently become field 1. Affects --nth, --with-nth, --hide-nth and {N} in --output-format.

* test(field): assert exit status and stderr for the output-format cases

Per review feedback: an empty stdout alone could pass if the placeholder
errored out instead of rendering empty.

---------

Co-authored-by: VXNCXNX <VXNCXNX@users.noreply.github.com>
2026-08-16 11:07:20 +02:00
..
common docs: readd default keybindings to the manpage as an auto-generated separate subsection 2026-07-26 14:45:29 +02:00
snapshots feat: allow binding actions & more events (#1125) 2026-07-21 11:42:47 +00:00
ansi.rs feat: add --hide-nth to hide fields from display but keep them searchable (#1122) 2026-07-18 13:13:43 +00:00
binds.rs feat: allow binding actions & more events (#1125) 2026-07-21 11:42:47 +00:00
case.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
cli.rs fix(field): an out-of-range field index silently matches field 1 (#1155) 2026-08-16 11:07:20 +02:00
defaults.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
execute.rs test: replace tmux e2e harness with cross-platform Zellij harness (#1139) 2026-07-23 16:32:29 +00:00
highlighting.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
interactive.rs test: replace tmux e2e harness with cross-platform Zellij harness (#1139) 2026-07-23 16:32:29 +00:00
issues.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
keys.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
keys_interactive.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
layout.rs feat: collapsed borders by default and --border-no-collapse flag (#1117) 2026-07-17 16:59:14 +00:00
listen.rs test: replace tmux e2e harness with cross-platform Zellij harness (#1139) 2026-07-23 16:32:29 +00:00
matcher.rs feat: bump frizbee to 0.10.0, thread local matcher (#1105) 2026-07-03 16:20:05 +00:00
mouse.rs fix: refresh preview after mouse selection (#1095) 2026-06-26 00:36:07 +02:00
multiline.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
normalize.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
options.rs feat: add --hide-nth to hide fields from display but keep them searchable (#1122) 2026-07-18 13:13:43 +00:00
popup.rs chore(deps): bump shell-quote from 0.7.2 to 0.8.0 in the cargo-prod group (#1154) 2026-08-11 13:21:43 +00:00
preview.rs chore: add image tests & examples 2026-06-17 13:56:37 +02:00
split_match.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00
tiebreak.rs chore: crate-level lints 2026-05-21 18:19:40 +02:00