summaryrefslogtreecommitdiff
path: root/edit-readline.c
AgeCommit message (Collapse)Author
2015-11-28Restore signal handlers when catching signals in edit_alloc()Bert Münnich
edit_catcher() performs a longjmp via rc_raise() to the matching setjmp in doit(). The latter does the same as before, so that edit_alloc() gets called again, but this time the installation of the signal handlers trashes the old handlers saved in the last call. Once readline() returns normally to edit_alloc() the wrong signal handlers get restored. The simplified call hierarchy looks like this: doit(); sigsetjmp(); edit_alloc(); oldint = sys_signal(SIGINT, edit_catcher); readline(); SIGINT -> edit_catcher(); siglongjmp(); sys_signal(SIGINT, oldint); Restoring the old signal handlers in edit_catcher() solves this.
2015-05-16Revert "readline completion: now mainly working" (moved to branch)Toby Goodwin
This reverts commit 90de423084757db66041175b43a59b5ff630cb50.
2015-05-16readline completion: now mainly workingToby Goodwin
2015-05-16edit shims: better naming, editline and vrl addedToby Goodwin