Fix editor integration
parent
c19b02a7b9
commit
7616eefbfc
|
@ -25,11 +25,8 @@ SYMBOL: edit-hook
|
||||||
require ;
|
require ;
|
||||||
|
|
||||||
: edit-location ( file line -- )
|
: edit-location ( file line -- )
|
||||||
edit-hook get [
|
>r current-directory get prepend-path r>
|
||||||
call
|
edit-hook get [ call ] [ no-edit-hook edit-location ] if* ;
|
||||||
] [
|
|
||||||
no-edit-hook edit-location
|
|
||||||
] if* ;
|
|
||||||
|
|
||||||
: edit ( defspec -- )
|
: edit ( defspec -- )
|
||||||
where [ first2 edit-location ] when* ;
|
where [ first2 edit-location ] when* ;
|
||||||
|
|
Loading…
Reference in New Issue