Skip to content

Commit

Permalink
fix: always search with absolute path in a dir
Browse files Browse the repository at this point in the history
  • Loading branch information
elsamuko committed Aug 11, 2020
1 parent ab3cb9c commit c80aadd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/fsrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ int main( int argc, char* argv[] ) {

searcher.onGitFiles();
} else {
// set prefix for clickable paths
opts.prefix = utils::absolutePath();

searcher.onAllFiles();
}

Expand Down
2 changes: 1 addition & 1 deletion src/searchoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SearchOptions SearchOptions::parseArgs( int argc, char* argv[] ) {
#endif


opts.path = dir;
opts.path = utils::absolutePath( sys_string( dir.cbegin(), dir.cend() ) );
} else {
opts.path = utils::absolutePath();
}
Expand Down

0 comments on commit c80aadd

Please sign in to comment.