mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Avoid stifling readline history when looking up options
With this patch, history is never stifled unless (readline-set!) is used. * src/guile-readline/readline.c (scm_readline_options)
This commit is contained in:
parent
cab7167849
commit
395582b218
1 changed files with 29 additions and 27 deletions
|
@ -60,7 +60,9 @@ SCM_DEFINE (scm_readline_options, "readline-options-interface", 0, 1, 0,
|
||||||
SCM ans = scm_options (setting,
|
SCM ans = scm_options (setting,
|
||||||
scm_readline_opts,
|
scm_readline_opts,
|
||||||
FUNC_NAME);
|
FUNC_NAME);
|
||||||
|
if (!SCM_UNBNDP (setting)) {
|
||||||
stifle_history (SCM_HISTORY_LENGTH);
|
stifle_history (SCM_HISTORY_LENGTH);
|
||||||
|
}
|
||||||
return ans;
|
return ans;
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#undef FUNC_NAME
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue