mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Applied patch by 2points to fix an issue with thesaurus.
Originally committed to SVN as r1625.
This commit is contained in:
parent
8d797046a7
commit
c249e1c4c9
@ -371,6 +371,7 @@ int MyThes::binsearch(char * sw, char* list[], int nlst)
|
||||
lp = 0;
|
||||
up = nlst-1;
|
||||
indx = -1;
|
||||
if (nlst == 0) return -1;
|
||||
if (strcmp(sw,list[lp]) < 0) return -1;
|
||||
if (strcmp(sw,list[up]) > 0) return -1;
|
||||
while (indx < 0 ) {
|
||||
@ -394,3 +395,4 @@ char * MyThes::get_th_encoding()
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user