-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge of pknowles 201706 #222
base: merge-of-pknowles-201706
Are you sure you want to change the base?
Merge of pknowles 201706 #222
Conversation
valgrind still detects some from readline's history and ncurses, but this may be expected behavior
some flags in HH_CONFIG should override others. this restores what was broken in a previous patch.
changes the minimal config to place the status in the prompt line defaults to highlight first match minor code cleanup
if (patternChanged) { | ||
patternChanged = false; | ||
if (hstr->selectionSize > 0) { | ||
selectionCursorPosition=0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After using this I think highlight selection should include the matching part of the pattern too.
@@ -120,12 +121,12 @@ | |||
#define HH_DEBUG_LEVEL_DEBUG 2 | |||
|
|||
#define HH_VIEW_RANKING 0 | |||
#define HH_VIEW_HISTORY 1 | |||
#define HH_VIEW_FAVORITES 2 | |||
#define HH_VIEW_FAVORITES 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings in HH_VIEW_LABELS
etc need to be updated to reflect these values.
I'm hoping some of this addresses the issues with the config parsing from my previous patch.
I'm not sure that I like the status-in-prompt idea I've tried (making it more similar to the regular bash ctrl-r), but there's a few other things that patch also cleans up. It might be good to split the minimal option into two.
Let me know what you think.