diff src/utilops.c @ 766:7148e125bf23

Check for existing editor command using is_valid_editor_command().
author zas_
date Fri, 30 May 2008 07:20:25 +0000
parents a2dda8e61e0f
children 44128da39e13
line wrap: on
line diff
--- a/src/utilops.c	Thu May 29 07:58:34 2008 +0000
+++ b/src/utilops.c	Fri May 30 07:20:25 2008 +0000
@@ -667,7 +667,7 @@
 			break;
 		}
 
-	if (ud->external_command != -1 && options->editor[ud->external_command].command)
+	if (is_valid_editor_command(ud->external_command))
 		{
 		gint flags;