Hello.

After using Aspell for while in utf8 locale, I find that there are several places,
where should put call of redrawwin to prevent appearing garbage on the screen.
Patch in attachment. To use it, you must apply it to check_funs.cpp.

Regards,

Evgeney.

--- aspell/prog/check_funs.cpp  2002-08-27 01:01:03.000000000 +0400
+++ /usr/src/aspell/prog/check_funs.cpp 2003-11-06 13:16:50.000000000 +0300
@@ -500,6 +500,7 @@
     }
       
     wnoutrefresh(text_w);
+    redrawwin(text_w);//because of not correct work of curses with utf-8
   } else if (use_curses && !text_w) {
     // do nothing
   } else
@@ -600,6 +601,7 @@
       wmove(menu_w,5,0);
       display_menu(menu_w, menu_choices, width);
       wnoutrefresh(menu_w);
+      redrawwin(menu_w);//because of not correct work of curses with utf-8
     } else {
       //ostream str;
       int height,width;
@@ -642,6 +644,7 @@
        print_truncate(menu_w, menu_items[i].desc, w);
       }
       wnoutrefresh(menu_w);
+      redrawwin(menu_w);//because of not correct work of curses with utf-8
     }
   } else if (use_curses && !menu_w) {
     // do nothing
_______________________________________________
Aspell-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/aspell-devel

Reply via email to