lotabout.skim/src
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
..
bin feat: reduce binary size by removing uncommon image formats and color_eyre (#1118) 2026-07-17 17:29:43 +00:00
engine feat: bump frizbee to 0.10.0, thread local matcher (#1105) 2026-07-03 16:20:05 +00:00
fuzzy_matcher fix: match double-width roman characters (closes #1149) 2026-08-07 12:11:23 +02:00
helper feat: add --hide-nth to hide fields from display but keep them searchable (#1122) 2026-07-18 13:13:43 +00:00
popup feat: add the set-cmd action to change interactive mode command from bindings (#1142) 2026-07-25 17:43:04 +02:00
tui fix: avoid truncation by casting up instead of down 2026-08-10 12:12:00 +02:00
binds.rs feat: add the set-cmd action to change interactive mode command from bindings (#1142) 2026-07-25 17:43:04 +02:00
binds_tests.rs feat: add the set-cmd action to change interactive mode command from bindings (#1142) 2026-07-25 17:43:04 +02:00
field.rs fix(field): an out-of-range field index silently matches field 1 (#1155) 2026-08-16 11:07:20 +02:00
field_tests.rs fix(field): an out-of-range field index silently matches field 1 (#1155) 2026-08-16 11:07:20 +02:00
item.rs fix: reorder batches in --tac mode (#1150) 2026-08-07 10:10:17 +00:00
item_tests.rs fix: reorder batches in --tac mode (#1150) 2026-08-07 10:10:17 +00:00
lib.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
lib_tests.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
manpage.rs docs: readd default keybindings to the manpage as an auto-generated separate subsection 2026-07-26 14:45:29 +02:00
matcher.rs fix: reorder batches in --tac mode (#1150) 2026-08-07 10:10:17 +00:00
options.rs fix: add allow_hyphen_values to --with-nth (#1156) 2026-08-16 08:11:27 +00:00
options_tests.rs fix: add allow_hyphen_values to --with-nth (#1156) 2026-08-16 08:11:27 +00:00
output.rs feat: add the set-cmd action to change interactive mode command from bindings (#1142) 2026-07-25 17:43:04 +02:00
prelude.rs feat: add the set-cmd action to change interactive mode command from bindings (#1142) 2026-07-25 17:43:04 +02:00
reader.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
shell.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
shell_tests.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
skim.rs fix(image): detect picker from tty to support protocol detection with piped input 2026-08-10 11:58:44 +02:00
skim_item.rs feat: add --hide-nth to hide fields from display but keep them searchable (#1122) 2026-07-18 13:13:43 +00:00
skim_tests.rs feat: allow binding actions & more events (#1125) 2026-07-21 11:42:47 +00:00
spinlock.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
theme.rs feat(theme): add a themeable scrollbar color for the item list (#1101) 2026-06-28 18:48:28 +02:00
theme_tests.rs feat(theme): add a themeable scrollbar color for the item list (#1101) 2026-06-28 18:48:28 +02:00
thread_pool.rs fix: preserve input order with --no-sort (#1115) 2026-07-17 12:16:46 +00:00
thread_pool_tests.rs fix: preserve input order with --no-sort (#1115) 2026-07-17 12:16:46 +00:00
util.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00
util_tests.rs tests: improve coverage to 90% (#1099) 2026-06-25 19:12:49 +00:00