From e2c4484f2ee17e93493dba0c6e28bce524ca74fa Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Wed, 13 May 2020 20:58:11 +0200 Subject: [PATCH] Just minor sources polishing. --- build/ubuntu/pbuilder-add-new-distro.sh | 4 +++- src/hstr.c | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build/ubuntu/pbuilder-add-new-distro.sh b/build/ubuntu/pbuilder-add-new-distro.sh index 8045d3e..48f8df4 100755 --- a/build/ubuntu/pbuilder-add-new-distro.sh +++ b/build/ubuntu/pbuilder-add-new-distro.sh @@ -14,8 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +# https://wiki.ubuntu.com/Releases + # boostrap new OR refresh distribution base for pbuilder -export DISTRO=disco +export DISTRO=fossa sudo pbuilder --create $DISTRO rm -vf ~/pbuilder/${DISTRO}-base.tgz diff --git a/src/hstr.c b/src/hstr.c index 7d34079..dff96ec 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -79,7 +79,7 @@ #define HSTR_CONFIG_REGEXP "regexp-matching" #define HSTR_CONFIG_SUBSTRING "substring-matching" #define HSTR_CONFIG_KEYWORDS "keywords-matching" -#define HSTR_CONFIG_NOCONFIRM "no-confirm" +#define HSTR_CONFIG_NO_CONFIRM "no-confirm" #define HSTR_CONFIG_VERBOSE_KILL "verbose-kill" #define HSTR_CONFIG_PROMPT_BOTTOM "prompt-bottom" #define HSTR_CONFIG_HELP_ON_OPPOSITE_SIDE "help-on-opposite-side" @@ -531,7 +531,7 @@ void hstr_get_env_configuration() if(strstr(hstr_config,HSTR_CONFIG_SUBSTRING)) { hstr->matching=HSTR_MATCH_SUBSTRING; } else { - if(strstr(hstr_config, HSTR_CONFIG_KEYWORDS)) { + if(strstr(hstr_config,HSTR_CONFIG_KEYWORDS)) { hstr->matching=HSTR_MATCH_KEYWORDS; } } @@ -561,7 +561,7 @@ void hstr_get_env_configuration() if(strstr(hstr_config,HSTR_CONFIG_KEEP_PAGE)) { hstr->keepPage=true; } - if(strstr(hstr_config,HSTR_CONFIG_NOCONFIRM)) { + if(strstr(hstr_config,HSTR_CONFIG_NO_CONFIRM)) { hstr->noConfirm=true; } if(strstr(hstr_config,HSTR_CONFIG_STATIC_FAVORITES)) { @@ -643,7 +643,7 @@ unsigned print_prompt(void) void add_to_selection(char* line, unsigned int* index) { - if (hstr->noRawHistoryDuplicates) { + if(hstr->noRawHistoryDuplicates) { unsigned i; for(i = 0; i < *index; i++) { if (strcmp(hstr->selection[i], line) == 0) {