Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MacVim to be treated the same way as Vim #10012

Merged
merged 1 commit into from
Feb 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow MacVim to be treated the same way as Vim
  • Loading branch information
jiahao committed Feb 1, 2015
commit 9d65fb732d706097955a1a0abbb10c74959f178b
4 changes: 2 additions & 2 deletions base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down