xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit 5dccec9e13679d542b9765135f29ee658dee9719

Initialising all pointers to avoid WARNING messeges during source building.
Author: sneh-m
Author date (UTC): 2018-03-07 15:56
Committer name: sneh-m
Committer date (UTC): 2018-03-07 15:56
Parent(s): 00c867dc78e6537d685867ac530961beb05be437
Signing key:
Tree: 396b701991127daed7cb114487be8df3a127b8bb
File Lines added Lines deleted
src/hstr.c 10 10
File src/hstr.c changed (mode: 100644) (index 0e779b0..9573e8f)
... ... unsigned hstr_make_selection(char *prefix, HistoryItems *history, int maxSelecti
641 641 regmatch_t regexpMatch; regmatch_t regexpMatch;
642 642 char regexpErrorMessage[CMDLINE_LNG]; char regexpErrorMessage[CMDLINE_LNG];
643 643 bool regexpCompilationError=false; bool regexpCompilationError=false;
644 bool keywordsAllMatch;
644 bool keywordsAllMatch=NULL;
645 645 char *keywordsSavePtr=NULL; char *keywordsSavePtr=NULL;
646 char *keywordsToken;
647 char *keywordsParsedLine;
648 char *keywordsPointerToDelete;
646 char *keywordsToken=NULL;
647 char *keywordsParsedLine=NULL;
648 char *keywordsPointerToDelete=NULL;
649 649 for(i=0; i<count && selectionCount<maxSelectionCount; i++) { for(i=0; i<count && selectionCount<maxSelectionCount; i++) {
650 650 if(source[i]) { if(source[i]) {
651 651 if(!prefix || !strlen(prefix)) { if(!prefix || !strlen(prefix)) {
 
... ... void print_selection_row(char *text, int y, int width, char *pattern)
759 759 if(hstr->theme & HH_THEME_COLOR) { if(hstr->theme & HH_THEME_COLOR) {
760 760 color_attr_on(COLOR_PAIR(HH_COLOR_MATCH)); color_attr_on(COLOR_PAIR(HH_COLOR_MATCH));
761 761 } }
762 char* p;
763 char* pp;
764 char* keywordsSavePtr;
765 char* keywordsToken;
766 char* keywordsParsedLine;
767 char* keywordsPointerToDelete;
762 char* p=NULL;
763 char* pp=NULL;
764 char* keywordsSavePtr=NULL;
765 char* keywordsToken=NULL;
766 char* keywordsParsedLine=NULL;
767 char* keywordsPointerToDelete=NULL;
768 768
769 769 switch(hstr->historyMatch) { switch(hstr->historyMatch) {
770 770 case HH_MATCH_SUBSTRING: case HH_MATCH_SUBSTRING:
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master