From e2d157d5895717e983e5cc4e5df792a6a5dbe0ac Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sat, 30 Apr 2016 15:16:00 +0200 Subject: znt: update to v2.1.15 --- plugins/zsh-navigation-tools/znt-history-widget | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/zsh-navigation-tools/znt-history-widget') diff --git a/plugins/zsh-navigation-tools/znt-history-widget b/plugins/zsh-navigation-tools/znt-history-widget index a4a26cbfc..479c2211b 100644 --- a/plugins/zsh-navigation-tools/znt-history-widget +++ b/plugins/zsh-navigation-tools/znt-history-widget @@ -4,6 +4,14 @@ local NLIST_START_IN_UNIQ_MODE=1 # Only if current $BUFFER doesn't come from history if [ "$HISTCMD" = "$HISTNO" ]; then + () { + setopt localoptions extendedglob + local -a match mbegin mend + local MATCH; integer MBEGIN MEND + + [ -n "$BUFFER" ] && BUFFER="${BUFFER%% ##} " + } + local NLIST_SET_SEARCH_TO="$BUFFER" fi -- cgit v1.2.3-70-g09d2