Attached is a patch that syncs us up with NetBSD's libedit. Please
review and provide feedback. If no problems arise, I'll plan on
committing this next week.
(Also available at http://www.theshell.com/~pavalos/wip/libedit.patch)