From 40f82f27322ec746a6de15c5ad55b2d8392043de Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 6 Jul 2019 12:31:26 +0300 Subject: [PATCH] src/filemanager/find.c: fix coding style. Signed-off-by: Andrew Borodin --- src/filemanager/find.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filemanager/find.c b/src/filemanager/find.c index 603bce02b..e521df3dc 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -905,9 +905,9 @@ insert_file (const char *dir, const char *file, gsize start, gsize end) while (IS_PATH_SEP (dir[0]) && IS_PATH_SEP (dir[1])) dir++; - if (old_dir) + if (old_dir != NULL) { - if (strcmp (old_dir, dir)) + if (strcmp (old_dir, dir) != 0) { g_free (old_dir); old_dir = g_strdup (dir); @@ -1065,6 +1065,7 @@ search_content (WDialog * h, const char *directory, const char *filename) while (!ret_val) { char ch = '\0'; + off += i + 1; /* the previous line, plus a newline character */ i = 0; @@ -1148,6 +1149,7 @@ search_content (WDialog * h, const char *directory, const char *filename) if ((line & 0xff) == 0) { FindProgressStatus res; + res = check_find_events (h); switch (res) {