mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-29 09:05:53 +00:00
Add test cases for header and fix corner cases
This commit is contained in:
1 parent
f469c25730
commit
f71ea5f3ea
3 files changed
+71
-6
No files matched your search
@@ -784,6 +784,10 @@ func parseOptions(opts *Options, allArgs []string) {
|
||||
}
|
||||
}
|
||||
|
||||
if opts.HeaderLines < 0 {
|
||||
errorExit("header lines must be a non-negative integer")
|
||||
}
|
||||
|
||||
// Change default actions for CTRL-N / CTRL-P when --history is used
|
||||
if opts.History != nil {
|
||||
if _, prs := keymap[curses.CtrlP]; !prs {
|
||||
|
||||
Reference in new issue
Block a user