From 8036f5ef7e1d773ee07d6cbd6dd8f7ab9e827d66 Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Wed, 30 Nov 2005 11:17:17 +0000 Subject: [PATCH] Added possibility of editing the word before adding it to user dictionary --- golded3/gemnus.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/golded3/gemnus.cpp b/golded3/gemnus.cpp index c928a12..8a6f4cc 100644 --- a/golded3/gemnus.cpp +++ b/golded3/gemnus.cpp @@ -1188,8 +1188,14 @@ int GMenuSChecker::Run(CSpellChecker &schecker, const char *word) if (finaltag == TAG_ADDWORD) { - schecker.AddWord(); - return -2; + char buff[1024]; + strcpy(buff, word); + + if (edit_string(buff, sizeof(buff), " Edit word ", 0) && !schecker.Check(buff)) + { + schecker.AddWord(); + return -2; + } } else if ((finaltag > TAG_LANG) && (finaltag < TAG_MORE)) {