Merge pull request #1 from mkfmnn/master

Fix segfault when using libedit