diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2000-09-04 21:10:29 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-09-04 21:10:29 +0000 |
| commit | dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87 (patch) | |
| tree | 904366741d50f3a05e55ecf909aaf41f14c1380f /Functions/Zle/history-search-end | |
| parent | 12741: outputradix was stomped on by nested matheval (diff) | |
| download | zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.gz zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.bz2 zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.lz zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.xz zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.zst zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.zip | |
Create "User Contributions" doc and make some assoctiated changes.
Diffstat (limited to 'Functions/Zle/history-search-end')
| -rw-r--r-- | Functions/Zle/history-search-end | 11 |
1 files changed, 6 insertions, 5 deletions
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 # } |
