diff --git a/src/ChangeLog b/src/ChangeLog index 0df52a83b..01734cca2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-12-27 Pavel Roskin + + * view.c (max_dirt_limit): Make global to match view.h. + * setup.c (options): Actually save max_dirt_limit, which is + documented as a "special setting". + 2002-12-26 Pavel Roskin * key,c (get_modifier): Warning fix. diff --git a/src/key.c b/src/key.c index 24e8d9e18..4ee0289e2 100644 --- a/src/key.c +++ b/src/key.c @@ -745,8 +745,6 @@ static int getch_with_delay (void) return c; } -extern int max_dirt_limit; - /* Returns a character read from stdin with appropriate interpretation */ /* Also takes care of generated mouse events */ /* Returns EV_MOUSE if it is a mouse event */ diff --git a/src/setup.c b/src/setup.c index d814eacc2..b5fc5f068 100644 --- a/src/setup.c +++ b/src/setup.c @@ -172,6 +172,7 @@ static const struct { { "cd_symlinks", &cd_symlinks }, { "show_all_if_ambiguous", &show_all_if_ambiguous }, { "have_fast_cpu", &have_fast_cpu }, + { "max_dirt_limit", &max_dirt_limit }, { "torben_fj_mode", &torben_fj_mode }, { "use_file_to_guess_type", &use_file_to_check_type }, { "alternate_plus_minus", &alternate_plus_minus }, diff --git a/src/view.c b/src/view.c index c7fd54f62..477500228 100644 --- a/src/view.c +++ b/src/view.c @@ -170,7 +170,7 @@ struct WView { /* Maxlimit for skipping updates */ -static int max_dirt_limit = +int max_dirt_limit = #ifdef NATIVE_WIN32 0; #else