We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83ddd88 commit 0c0859eCopy full SHA for 0c0859e
cli.cpp
@@ -697,6 +697,10 @@ void processNearestCmd()
697
string best_c_d = best_jaccard_substr(text[1], text[0]);
698
vector<string> tokens;
699
boost::split(tokens, best_c_d, boost::is_any_of(" "));
700
+ if (tokens.size() < 2) {
701
+ error("Both clipboards must have at least 2 characters.");
702
+ return;
703
+ }
704
info("Nearest Jaccard distance is " + tokens[1] + " with substring " + tokens[0] + ".");
705
} else {
706
error("Text 1 or 2 is not set.");
0 commit comments