From 9e82e5a2fa067439d57023fc0d978ca8c3e1160b Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Sat, 4 Jul 2020 21:04:17 -0400 Subject: [PATCH] Show entire table if number of rows requested for `last` is greater than table size (#2112) * Show entire table if number of rows requested for last is greater than table size * rustfmt * Add test --- crates/nu-cli/src/commands/last.rs | 16 +++++++++------- crates/nu-cli/tests/commands/last.rs | 12 ++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/crates/nu-cli/src/commands/last.rs b/crates/nu-cli/src/commands/last.rs index 1e3365cac3..2b51fb93dc 100644 --- a/crates/nu-cli/src/commands/last.rs +++ b/crates/nu-cli/src/commands/last.rs @@ -69,16 +69,18 @@ async fn last(args: CommandArgs, registry: &CommandRegistry) -> Result