Zsh: even saner history search
Zsh: even saner history search

The previous implementation pegged the cursor at a fixed location when
moving forward and back through the history; this one keeps it at the
end of the line, which is usually what you want, while remembering the
initial position of the cursor so that your navigation through the
history effectively uses a fixed prefix as a basis for matching history
lines (again, this is usually what you want).

Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>

wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent