From dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 4 Sep 2000 21:10:29 +0000 Subject: Create "User Contributions" doc and make some assoctiated changes. --- Functions/Zle/history-search-end | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Functions/Zle/history-search-end') diff --git a/Functions/Zle/history-search-end b/Functions/Zle/history-search-end index 24e7a0a87..fd58bb5f8 100644 --- a/Functions/Zle/history-search-end +++ b/Functions/Zle/history-search-end @@ -8,13 +8,13 @@ # bindkey '...' history-beginning-search-backward-end # bindkey '...' history-beginning-search-forward-end -integer ocursor=$CURSOR +integer cursor=$CURSOR mark=$MARK if [[ $LASTWIDGET = history-beginning-search-*-end ]]; then - # Last widget called set $hbs_pos. - CURSOR=$hbs_pos + # Last widget called set $MARK. + CURSOR=$MARK else - hbs_pos=$CURSOR + MARK=$CURSOR fi if zle .${WIDGET%-end}; then @@ -22,7 +22,8 @@ if zle .${WIDGET%-end}; then zle .end-of-line else # failure, restore position - CURSOR=$ocursor + CURSOR=$cursor + MARK=$mark return 1 fi # } -- cgit 1.4.1