1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

l_set_option: Use option_changed() instead of inline code.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-27 18:41:57 +02:00 committed by Kalle Olavi Niemitalo
parent 392c792f60
commit ba5f683dcb

View File

@ -491,7 +491,7 @@ static int
l_set_option(LS) l_set_option(LS)
{ {
int nargs; int nargs;
struct option *opt, *current; struct option *opt;
const char *name; const char *name;
nargs = lua_gettop(S); nargs = lua_gettop(S);
@ -536,11 +536,8 @@ l_set_option(LS)
goto lua_error; goto lua_error;
} }
opt->flags |= OPT_TOUCHED;
/* Call hook */ /* Call hook */
current = opt; option_changed(lua_ses, opt, opt);
call_change_hooks(lua_ses, current, opt);
return 1; return 1;
lua_error: lua_error: