diff options
Diffstat (limited to 'Build/source/utils/asymptote/settings.cc')
-rw-r--r-- | Build/source/utils/asymptote/settings.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/settings.cc b/Build/source/utils/asymptote/settings.cc index a97226c24c5..074f6d707ed 100644 --- a/Build/source/utils/asymptote/settings.cc +++ b/Build/source/utils/asymptote/settings.cc @@ -1580,8 +1580,8 @@ string texprogram() Int getScroll() { Int scroll=settings::getSetting<Int>("scroll"); -#ifdef HAVE_LIBCURSES if(scroll < 0) { +#ifdef HAVE_LIBCURSES static char *terminal=NULL; if(!terminal) terminal=getenv("TERM"); @@ -1593,9 +1593,10 @@ Int getScroll() #endif scroll=0; } else scroll=0; - - } +#else + scroll=0; #endif + } return scroll; } |