Mercurial > vim
diff src/os_unix.c @ 42:c75153d791d0
updated for version 7.0026
author | vimboss |
---|---|
date | Wed, 29 Dec 2004 20:58:21 +0000 |
parents | 410fa1a31baf |
children | 587305d23d2c |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -1320,14 +1320,13 @@ x_error_handler(dpy, error_event) Display *dpy; XErrorEvent *error_event; { - /* KDE sometimes produces X error that we want to ignore */ + XGetErrorText(dpy, error_event->error_code, (char *)IObuff, IOSIZE); #if defined(FEAT_GUI_KDE) - XGetErrorText(dpy, error_event->error_code, (char *)IObuff, IOSIZE); - STRCAT(IObuff, "\nVim: Got X error but we continue...\n"); - fprintf(stderr, IObuff); + /* KDE sometimes produces X error that we want to ignore */ + STRCAT(IObuff, _("\nVim: Got X error but we continue...\n")); + mch_errmsg((char *)IObuff); return 0; #else - XGetErrorText(dpy, error_event->error_code, (char *)IObuff, IOSIZE); STRCAT(IObuff, _("\nVim: Got X error\n")); /* We cannot print a message and continue, because no X calls are allowed