Skip to content

Commit

Permalink
display.c: fix build with netbsd-curses (jonas#789)
Browse files Browse the repository at this point in the history
refresh is implement as a macro in netbsd curses,
so using it as a variable name clashes.
  • Loading branch information
rofl0r authored and rolandwalker committed May 21, 2018
1 parent 3215532 commit 68051a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 68051a8

Please sign in to comment.