Different marking of current history entry

This commit is contained in:
Sebastian Gniazdowski 2016-05-22 13:09:48 +02:00
parent 47eacda735
commit 8d0e727200

View file

@ -65,10 +65,13 @@ _zhcw_main() {
# All entries should have multilines replaced
disp_list=( "${(@)disp_list//$'\n'/\\n}" )
# ... and truncated to display width
disp_list=( "${(@)disp_list/(#m)*/${MATCH[1,COLUMNS-6]}}" )
# ... and truncated to display width, and
# also preceeded by two spaces
disp_list=( "${(@)disp_list/(#m)*/ ${MATCH[1,COLUMNS-8]}}" )
disp_list[on_page_idx]="> ${disp_list[on_page_idx]} <"
local entry="${disp_list[on_page_idx]}"
entry[1]='>'
disp_list[on_page_idx]="$entry"
zle -M -- \
"Searching for '$BUFFER'. "\