mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/readline/readline.c (readline_readline): rl_deprep_term_function
may be NULL with libedit. reported by Ryan Davis. [ruby-dev:29070] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8b993c182
commit
77146ae7cb
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 24 15:51:52 2006 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/readline/readline.c (readline_readline): rl_deprep_term_function
|
||||
may be NULL with libedit. reported by Ryan Davis. [ruby-dev:29070]
|
||||
|
||||
Sun Jul 23 22:59:49 2006 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/socket/test_unix.rb: disabled on cygwin.
|
||||
|
|
|
@ -77,7 +77,9 @@ readline_readline(int argc, VALUE *argv, VALUE self)
|
|||
rl_cleanup_after_signal();
|
||||
#elif defined HAVE_RL_DEPREP_TERM_FUNCTION
|
||||
/* restore terminal mode */
|
||||
(*rl_deprep_term_function)();
|
||||
if (rl_deprep_term_function != NULL) /* NULL in libedit. [ruby-dev:29116] */
|
||||
(*rl_deprep_term_function)();
|
||||
else
|
||||
#else
|
||||
rl_deprep_terminal();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue