m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 14:23:47 -05:00

Add test cases for header and fix corner cases

This commit is contained in:
Junegunn Choi
2015-07-22 13:45:38 +09:00
parent f469c25730
commit f71ea5f3ea
3 changed files with 71 additions and 6 deletions

View File

@@ -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 {