$OpenBSD: patch-src_SearchWindow_cpp,v 1.5 2021/10/03 21:19:58 bcallah Exp $

Remove gnuisms. The Find Hidden checkbox does nothing now.

Index: src/SearchWindow.cpp
--- src/SearchWindow.cpp.orig
+++ src/SearchWindow.cpp
@@ -644,7 +644,7 @@ long SearchWindow::onCmdStart(FXObject*, FXSelector, v
     }
     else
     {
-        searchcommand = "find -P " + ::quote(wheredir->getText());
+        searchcommand = "find " + ::quote(wheredir->getText());
     }
 
     // Ignore case
@@ -750,7 +750,7 @@ long SearchWindow::onCmdStart(FXObject*, FXSelector, v
     // Hidden files
     if (!findhidden->getCheck())
     {
-        searchcommand += " \\( ! -regex '.*/\\..*' \\)";
+        searchcommand += " ! -path .";
     }
 
     // Without grep command
