Explorar el Código

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

frosty hace 2 semanas
padre
commit
26e3403e03
Se han modificado 1 ficheros con 1 adiciones y 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) {