Fix editor integration

Slava Pestov 2008-03-27 18:00:55 -05:00
parent c19b02a7b9
commit 7616eefbfc
1 changed files with 2 additions and 5 deletions

View File

@ -25,11 +25,8 @@ SYMBOL: edit-hook
require ;
: edit-location ( file line -- )
edit-hook get [
call
] [
no-edit-hook edit-location
] if* ;
>r current-directory get prepend-path r>
edit-hook get [ call ] [ no-edit-hook edit-location ] if* ;
: edit ( defspec -- )
where [ first2 edit-location ] when* ;