Fix keybindings list being empty by default (#13456)

# Description

Made a mistake when fixing this for IR. The default behavior with no
options set is to list everything. Restored that.

This should go in the 0.96.1 patch release.

# Tests + Formatting
Added regression test.
This commit is contained in:
Devyn Cairns
2024-07-26 01:03:05 -07:00
committed by GitHub
parent e68f744dda
commit 53fbf62493
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,7 @@
use nu_test_support::nu;
#[test]
fn not_empty() {
let result = nu!("keybindings list | is-not-empty");
assert_eq!(result.out, "true");
}

View File

@ -1 +1,2 @@
mod keybindings_list;
mod nu_highlight;