temporary fix (well, it works!)

This commit is contained in:
千住柱間 2024-05-18 23:59:06 -04:00
parent 79586f3d04
commit bca6e95b7c
Signed by: hashirama
GPG key ID: 53E62470A86BC185

View file

@ -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);