aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis.c b/vis.c
index a26bccb..8d68907 100644
--- a/vis.c
+++ b/vis.c
@@ -199,8 +199,8 @@ static File *file_new(Vis *vis, const char *name) {
/* try to detect whether the same file is already open in another window */
for (File *file = vis->files; file; file = file->next) {
if (file->name) {
- if (cmp_names && strcmp(file->name, name_absolute) == 0 ||
- file->stat.st_dev == new.st_dev && file->stat.st_ino == new.st_ino) {
+ if ((cmp_names && strcmp(file->name, name_absolute) == 0) ||
+ (file->stat.st_dev == new.st_dev && file->stat.st_ino == new.st_ino)) {
existing = file;
break;
}