Skip to content

Commit

Permalink
Fixing Arch build by fixing bug in mvprintw which resolves #443
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Dec 13, 2021
1 parent ad8dd39 commit 9152b59
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 14 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2021-12-13 Martin Dvorak <[email protected]>

* Released v2.5.0 - minor fix release to fix Arch build.

2021-12-03 Martin Dvorak <[email protected]>

* Released v2.4.0 - ability to insert custom command to terminal prompt,
Expand Down
4 changes: 2 additions & 2 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Alternatively you can download and install `.deb` archive from [GitHub releases]
section of the project:

```bash
wget -O hstr.deb https://github.com/dvorka/hstr/releases/download/2.4/hstr_<major>.<minor>.<revision>-1_amd64.deb
wget -O hstr.deb https://github.com/dvorka/hstr/releases/download/<major>.<minor>/hstr_<major>.<minor>.<revision>-1_amd64.deb

# dependencies:
apt-get install libncursesw5 libtinfo5
Expand Down Expand Up @@ -191,7 +191,7 @@ pkg install hstr
To install HSTR on Slackware, please check [pkgs.org](https://pkgs.org/search/?q=hstr). You can install HSTR as follows:

```bash
upgradepkg --install-new hstr-2.4-x86_64-1cf.txz
upgradepkg --install-new hstr-<major>.<minor>-x86_64-1cf.txz
```

[Configure](CONFIGURATION.md) HSTR and check its [man page](README.md#documentation).
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Contributor: Busindre <busilezas at busindre.com>

pkgname=hstr
pkgver=2.3
pkgver=2.5
pkgrel=1
pkgdesc="A command line utility that brings improved BASH command completion from the history. It aims to make completion easier and more efficient than Ctrl-r."
arch=('any')
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The following HSTR versions are currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 2.5.0 | :white_check_mark: |
| 2.4.0 | :white_check_mark: |
| <= 2.3.0 | :x: |

Expand Down
4 changes: 2 additions & 2 deletions build/debian/make-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ then
exit 1
fi

export ARG_BAZAAR_MSG="HSTR 2.4.0"
export ARG_VERSION="2.4.0"
export ARG_BAZAAR_MSG="HSTR 2.5.0"
export ARG_VERSION="2.5.0"

# Debian releases: https://www.debian.org/releases/
# 6/7/8/9/10: squeeze wheezy jessie stretch buster
Expand Down
2 changes: 1 addition & 1 deletion build/fedora/rpm-from-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# This script is available from http://www.mindforger.com/fedora/fedora-rpm-from-deb.sh
# to be easily available in VMs

export MFVERSION="2.4.0"
export MFVERSION="2.5.0"
export MFPRJNAME="hstr-${MFVERSION}"
export AMD64NAME="hstr_${MFVERSION}-1_amd64"
export I386NAME="hstr_${MFVERSION}-1_i386"
Expand Down
2 changes: 1 addition & 1 deletion build/tarball/tarball-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

export SCRIPT_HOME=`pwd`

export HSTR_VERSION="2.4.0"
export HSTR_VERSION="2.5.0"

export NOW=`date +%Y-%m-%d--%H-%M-%S`
export GH_RELEASE_DIR=~/p/hstr/release
Expand Down
4 changes: 2 additions & 2 deletions build/ubuntu/launchpad-make-all-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ then
exit 1
fi

export ARG_BAZAAR_MSG="Release 2.4"
export ARG_MAJOR_VERSION=2.4.
export ARG_BAZAAR_MSG="Release 2.5"
export ARG_MAJOR_VERSION=2.5.
export ARG_MINOR_VERSION=7 # minor version is incremented for every Ubuntu version

# https://wiki.ubuntu.com/Releases
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

AC_PREREQ([2.69])

AC_INIT(hstr, 2.4.0, [email protected])
AC_INIT(hstr, 2.5.0, [email protected])
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])

# Check src dir existence.
Expand Down
4 changes: 2 additions & 2 deletions pad.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
</Company_Info>
<Program_Info>
<Program_Name>HSTR</Program_Name>
<Program_Version>2.4.0</Program_Version>
<Program_Version>2.5.0</Program_Version>
<Program_Release_Month>12</Program_Release_Month>
<Program_Release_Day>3</Program_Release_Day>
<Program_Release_Day>13</Program_Release_Day>
<Program_Release_Year>2021</Program_Release_Year>
<Program_Cost_Dollars />
<Program_Cost_Other_Code>USD</Program_Cost_Other_Code>
Expand Down
4 changes: 2 additions & 2 deletions src/hstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

// major.minor.revision
static const char* VERSION_STRING=
"hstr version \"2.4.0\" (2021-12-03T21:30:00)"
"hstr version \"2.5.0\" (2021-12-13T22:00:00)"
"\n";

static const char* HSTR_VIEW_LABELS[]={
Expand Down Expand Up @@ -742,7 +742,7 @@ void print_cmd_added_favorite_label(const char* cmd)
color_attr_on(COLOR_PAIR(HSTR_COLOR_INFO));
color_attr_on(A_BOLD);
}
mvprintw(hstr->promptYNotification, 0, screenLine);
mvprintw(hstr->promptYNotification, 0, "%s", screenLine);
if(hstr->theme & HSTR_THEME_COLOR) {
color_attr_off(A_BOLD);
color_attr_on(COLOR_PAIR(HSTR_COLOR_NORMAL));
Expand Down

0 comments on commit 9152b59

Please sign in to comment.