Procházet zdrojové kódy

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

frosty před 2 týdny
rodič
revize
26e3403e03
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {