From 99e4fda9f1895ab214968b5d3fcc20f7afe9987c Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 10 Mar 2018 03:57:03 +0000 Subject: [PATCH] display.c: fix build with netbsd-curses refresh is implement as a macro in netbsd curses, so using it as a variable name clashes. --- src/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display.c b/src/display.c index 6f0425522..945c3c0e8 100644 --- a/src/display.c +++ b/src/display.c @@ -61,7 +61,7 @@ open_script(const char *path) } bool -open_external_viewer(const char *argv[], const char *dir, bool silent, bool confirm, bool echo, bool refresh, const char *notice) +open_external_viewer(const char *argv[], const char *dir, bool silent, bool confirm, bool echo, bool do_refresh, const char *notice) { bool ok; @@ -96,7 +96,7 @@ open_external_viewer(const char *argv[], const char *dir, bool silent, bool conf set_terminal_modes(); } - if (watch_update(WATCH_EVENT_AFTER_COMMAND) && refresh) { + if (watch_update(WATCH_EVENT_AFTER_COMMAND) && do_refresh) { struct view *view; int i;