]> gitweb.factorcode.org Git - factor.git/commitdiff
vim should work again
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 18 Apr 2008 19:02:11 +0000 (14:02 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 18 Apr 2008 19:02:11 +0000 (14:02 -0500)
extra/editors/vim/vim.factor

index f632a478be16754cc73fc527092d28019b1eb65b..9ce256868b23b21b05e79b6507bed4aa9839d86e 100755 (executable)
@@ -1,5 +1,5 @@
 USING: definitions io io.launcher kernel math math.parser
-namespaces parser prettyprint sequences editors ;
+namespaces parser prettyprint sequences editors accessors ;
 IN: editors.vim
 
 SYMBOL: vim-path
@@ -17,8 +17,9 @@ M: vim vim-command ( file line -- array )
 
 : vim-location ( file line -- )
     vim-command
-    vim-detach get-global
-    [ try-detached ] [ try-process ] if ;
+    <process> swap >>command
+    vim-detach get-global [ t >>detached ] when
+    try-process ;
 
 "vim" vim-path set-global
 [ vim-location ] edit-hook set-global