Skip to content

Commit

Permalink
Update dict.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdmdm authored Dec 20, 2024
1 parent ecbaf62 commit e57dae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ static bool LoadDict(const char *file)
FILE *f;
char buf[MAX_WORD];

fprintf(stderr, "Loading %s\n", local_words);

if ((f = fopen(file, "rt")) == NULL)
{
fprintf(stderr, "Could not open %s\n", file);
Expand Down Expand Up @@ -99,12 +101,10 @@ static void LoadDict()

snprintf(local_words, sizeof(local_words), "%s/words", getenv("HOME"));
if (IsExists(local_words)) {
fprintf(stderr, "Loading %s\n", local_words);
LoadDict(local_words);
}

if (IsExists("words")) {
fprintf(stderr, "Loading 'words' in current folder\n");
LoadDict("words");
}
#endif
Expand Down

0 comments on commit e57dae4

Please sign in to comment.