Explorar o código

fixed calculator infobox showing up when it shouldn't on decimals

frosty hai 2 semanas
pai
achega
26e3403e03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Routes/Search.c

+ 1 - 1
src/Routes/Search.c

@@ -49,7 +49,7 @@ static int is_calculator_query(const char *query) {
     }
   }
 
-  return has_digit && (has_operator || strchr(query, '.'));
+  return has_digit && has_operator;
 }
 
 static void *calc_thread_func(void *arg) {