From a317284db69b0d7e63521009d27130d90e2b59f9 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 4 Jul 2025 22:05:35 -0500 Subject: [PATCH] fix `ansi --list` missing new items (#16113) # Description This fixes an oversight where not all items show in `ansi --list`. ### Before ![image](https://github.com/user-attachments/assets/2fd60744-28e1-4769-b491-7ac92b8b96c6) ### After ![image](https://github.com/user-attachments/assets/422993a5-5f29-4c24-8d90-66b642d72fa4) # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/strings/ansi/ansi_.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/strings/ansi/ansi_.rs b/crates/nu-command/src/strings/ansi/ansi_.rs index d92fe5197f..e3bd8632b1 100644 --- a/crates/nu-command/src/strings/ansi/ansi_.rs +++ b/crates/nu-command/src/strings/ansi/ansi_.rs @@ -902,8 +902,8 @@ fn generate_ansi_code_list( let code = Value::string(ansi_code.code.replace('\u{1b}', "\\e"), call_span); let record = if use_ansi_coloring { - // The first 397 items in the ansi array are previewable - let preview = if i < 397 { + // The first 409 items in the ansi array are previewable + let preview = if i < 409 { Value::string( format!("\u{1b}[0m{}NUSHELL\u{1b}[0m", &ansi_code.code), call_span,