summaryrefslogtreecommitdiff
path: root/src/nbdebug.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-24 21:56:24 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-24 21:56:24 +0000
commit446cb837a017fc1c1b144cb5c2a35cb90abfbbcf (patch)
tree6c1fe56f2db8d4adbeee792b181b0659c4d1f216 /src/nbdebug.c
parent3577c6fafb77da5419cd1001dac56f204d480bdc (diff)
downloadvim-git-446cb837a017fc1c1b144cb5c2a35cb90abfbbcf.tar.gz
updated for version 7.2a
Diffstat (limited to 'src/nbdebug.c')
-rw-r--r--src/nbdebug.c7
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,