Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit d96a193

Browse files
Fixes to FINDSTR engine. Unfortunately not sufficient for it to work properly
1 parent 56d38c0 commit d96a193

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

SearchInProject.sublime-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131

3232
/* FindStr configuration */
3333
"search_in_project_FindStr_path_to_executable": "findstr",
34-
"search_in_project_FindStr_mandatory_options": "/n /s"
34+
"search_in_project_FindStr_mandatory_options": "/n /s /p"
3535
}

searchengines/find_str.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# sys.argv[0] also fails because it doesn't not always contains the path
1616
### End of fixing import paths
1717

18+
import shlex
1819
import base
1920

2021

@@ -28,4 +29,7 @@ def _arguments(self, query, folders):
2829
shlex.split(self.common_options) +
2930
['"/d:%s"' % ":".join(folders), query, "*.*"])
3031

32+
def _is_search_error(self, returncode, output, error):
33+
return self._sanitize_output(error) != ""
34+
3135
engine_class = FindStr

0 commit comments

Comments
 (0)