Fix '/' to redo previous search when readline support is enabled
commitdad85de3cd74e0f2154f9f77688fe8c4fbb6155e
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 17 Jun 2014 23:37:02 +0000 (17 19:37 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 17 Jun 2014 23:37:02 +0000 (17 19:37 -0400)
treee7d534b4af3669b64eae370dbc60f14f9700a9bc
parent5c5487f45d606f2756c393ef6fee12617010386d
Fix '/' to redo previous search when readline support is enabled

The readline version of read_prompt() did not act the same way as the
non-readline version. Add check to ensure that NULL is returned instead
of the empty string.

Fixes #302
src/prompt.c
test/main/search-test