Makes history-substring-search use term specific up and down buttons. Fixes #2089.
history-substring-search: bindkey now checks if terminfo is available first.
Merge pull request #2511 from FloFra/master

Makes history-substring-search use term specific up and down buttons.