Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
41:f529edb9bab3 | 42:c75153d791d0 |
---|---|
1318 static int | 1318 static int |
1319 x_error_handler(dpy, error_event) | 1319 x_error_handler(dpy, error_event) |
1320 Display *dpy; | 1320 Display *dpy; |
1321 XErrorEvent *error_event; | 1321 XErrorEvent *error_event; |
1322 { | 1322 { |
1323 XGetErrorText(dpy, error_event->error_code, (char *)IObuff, IOSIZE); | |
1324 #if defined(FEAT_GUI_KDE) | |
1323 /* KDE sometimes produces X error that we want to ignore */ | 1325 /* KDE sometimes produces X error that we want to ignore */ |
1324 #if defined(FEAT_GUI_KDE) | 1326 STRCAT(IObuff, _("\nVim: Got X error but we continue...\n")); |
1325 XGetErrorText(dpy, error_event->error_code, (char *)IObuff, IOSIZE); | 1327 mch_errmsg((char *)IObuff); |
1326 STRCAT(IObuff, "\nVim: Got X error but we continue...\n"); | |
1327 fprintf(stderr, IObuff); | |
1328 return 0; | 1328 return 0; |
1329 #else | 1329 #else |
1330 XGetErrorText(dpy, error_event->error_code, (char *)IObuff, IOSIZE); | |
1331 STRCAT(IObuff, _("\nVim: Got X error\n")); | 1330 STRCAT(IObuff, _("\nVim: Got X error\n")); |
1332 | 1331 |
1333 /* We cannot print a message and continue, because no X calls are allowed | 1332 /* We cannot print a message and continue, because no X calls are allowed |
1334 * here (causes my system to hang). Silently continuing might be an | 1333 * here (causes my system to hang). Silently continuing might be an |
1335 * alternative... */ | 1334 * alternative... */ |