From 9d65fb732d706097955a1a0abbb10c74959f178b Mon Sep 17 00:00:00 2001 From: Jiahao Chen Date: Sun, 1 Feb 2015 16:58:39 -0500 Subject: [PATCH] Allow MacVim to be treated the same way as Vim --- base/interactiveutil.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/interactiveutil.jl b/base/interactiveutil.jl index ef2c4e5be7923..9f5b2e661087d 100644 --- a/base/interactiveutil.jl +++ b/base/interactiveutil.jl @@ -24,10 +24,10 @@ function edit(file::AbstractString, line::Integer) f = find_source_file(file) f != nothing && (file = f) end - no_line_msg = "Unknown editor: no line number information passed.\nThe method is defined at line $line." + const no_line_msg = "Unknown editor: no line number information passed.\nThe method is defined at line $line." if startswith(edname, "emacs") || edname == "gedit" spawn(`$edpath +$line $file`) - elseif edname == "vim" || edname == "nvim" || edname == "nano" + elseif edname == "vim" || edname == "nvim" || edname == "mvim" || edname == "nano" run(`$edpath +$line $file`) elseif edname == "textmate" || edname == "mate" || edname == "kate" spawn(`$edpath $file -l $line`)