]> gitweb.factorcode.org Git - factor.git/commitdiff
edit-error now works if the error has a file name but not a line number
authorSlava Pestov <slava@factorcode.org>
Sat, 21 Nov 2009 23:23:59 +0000 (17:23 -0600)
committerSlava Pestov <slava@factorcode.org>
Sat, 21 Nov 2009 23:23:59 +0000 (17:23 -0600)
basis/editors/editors.factor [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index feb19af..7e16c1c
@@ -49,7 +49,7 @@ M: cannot-find-source error.
 
 : edit-error ( error -- )
     [ error-file ] [ error-line ] bi
-    2dup and [ edit-location ] [ 2drop ] if ;
+    over [ 1 or edit-location ] [ 2drop ] if ;
 
 : :edit ( -- )
     error get edit-error ;