diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 21:56:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 21:56:24 +0000 |
commit | 446cb837a017fc1c1b144cb5c2a35cb90abfbbcf (patch) | |
tree | 6c1fe56f2db8d4adbeee792b181b0659c4d1f216 /src/nbdebug.c | |
parent | 3577c6fafb77da5419cd1001dac56f204d480bdc (diff) | |
download | vim-git-446cb837a017fc1c1b144cb5c2a35cb90abfbbcf.tar.gz |
updated for version 7.2a
Diffstat (limited to 'src/nbdebug.c')
-rw-r--r-- | src/nbdebug.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nbdebug.c b/src/nbdebug.c index d73a5e5e8..3dfe86ae9 100644 --- a/src/nbdebug.c +++ b/src/nbdebug.c @@ -36,7 +36,7 @@ void nbdb(char *, ...); void nbtrace(char *, ...); static int lookup(char *); -#ifndef FEAT_GUI_W32 +#ifdef USE_NB_ERRORHANDLER static int errorHandler(Display *, XErrorEvent *); #endif @@ -92,6 +92,9 @@ nbdebug_log_init( } else { nb_dlevel = NB_TRACE; /* default level */ } +#ifdef USE_NB_ERRORHANDLER + XSetErrorHandler(errorHandler); +#endif } } /* end nbdebug_log_init */ @@ -166,7 +169,7 @@ lookup( } /* end lookup */ -#ifndef FEAT_GUI_W32 +#ifdef USE_NB_ERRORHANDLER static int errorHandler( Display *dpy, |