From 3ab496d413ed96e4a9aa12128b384910e9054d8f Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Fri, 29 Sep 2017 13:46:10 +0200 Subject: [PATCH] *-event-loop: Ability to prevent current segment resetting on e-jump --- zui-event-loop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zui-event-loop b/zui-event-loop index 0fb9244..b940348 100644 --- a/zui-event-loop +++ b/zui-event-loop @@ -404,7 +404,7 @@ if (( zuiel_bit_set )); then integer call_hook=0 if [[ "$id" = zuieanchor* ]]; then ZUI[CURRENT_IDX]=$(( ${ZUI[$id]-$data1} )) - ZUI[CURRENT_SEGMENT]=1 + [[ "${ZUI[reset_current_segment]}" = "no" ]] || ZUI[CURRENT_SEGMENT]=1 id="zuiaction${id#zuieanchor}" ZUI[SEARCH_BUFFER]="" call_hook=1