diff src/preferences.c @ 1400:67573155210c

Add helper macros EDITOR_ERRORS() and EDITOR_ERRORS_BUT_SKIPPED() to clean up the code a bit. Minor tidy up.
author zas_
date Sun, 08 Mar 2009 15:30:15 +0000
parents 77c3d9dcd6bc
children d7a6fb7a90dd
line wrap: on
line diff
--- a/src/preferences.c	Sun Mar 08 15:02:18 2009 +0000
+++ b/src/preferences.c	Sun Mar 08 15:30:15 2009 +0000
@@ -201,7 +201,7 @@
 			{
 			gint flags = editor_command_parse(buf, NULL, NULL);
 		
-			if (flags & EDITOR_ERROR_MASK)
+			if (EDITOR_ERRORS(flags))
 				{
 				if (errmsg->str[0]) g_string_append(errmsg, "\n\n");
 				g_string_append_printf(errmsg, _("%s\n#%d \"%s\":\n%s"), editor_get_error_str(flags),