temporary fix (well, it works!)
This commit is contained in:
parent
79586f3d04
commit
bca6e95b7c
|
@ -1,3 +1,5 @@
|
|||
// filename: hakurei.cpp
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
@ -241,12 +243,14 @@ int main(const int argc, char* argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
std::string search_string = get_input(argc, argv, goldendict_mode);
|
||||
log_internal("Search string: " + search_string);
|
||||
if (goldendict_mode && !sentence.empty()) {
|
||||
search_string = sentence;
|
||||
log_internal("Search string overridden by sentence: " + search_string);
|
||||
}
|
||||
log_internal("Trying to get the search string...");
|
||||
|
||||
std::string search_string = sentence;
|
||||
//log_internal("Search string: " + search_string);
|
||||
//if (goldendict_mode && !sentence.empty()) {
|
||||
//search_string = sentence;
|
||||
// log_internal("Search string overridden by sentence: " + search_string);
|
||||
// }
|
||||
|
||||
// Log the execution details
|
||||
log_execution(argc, argv, search_string, dict_file, debug_mode, goldendict_mode);
|
||||
|
|
Loading…
Reference in a new issue