Skip to content

Commit

Permalink
Fixed bug with escaping of double quotes - if your VIM is compiled with
Browse files Browse the repository at this point in the history
+ruby, you won't be able to use double quotes in commands, e.g. :RdbEval
"blabla". Now it is fixed.
  • Loading branch information
Anton Astashov committed Sep 7, 2010
1 parent 0e13163 commit 0086698
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion additionals/autoload/ruby_debugger.vim
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ruby << RUBY
a = nil
host = VIM::evaluate("s:hostname")
port = VIM::evaluate("s:debugger_port")
message = VIM::evaluate("a:message")
message = VIM::evaluate("a:message").gsub("\\\"", '"')
begin
a = TCPSocket.open(host, port)
a.puts(message)
Expand Down
2 changes: 1 addition & 1 deletion ruby_debugger/common.vim
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ruby << RUBY
a = nil
host = VIM::evaluate("s:hostname")
port = VIM::evaluate("s:debugger_port")
message = VIM::evaluate("a:message")
message = VIM::evaluate("a:message").gsub("\\\"", '"')
begin
a = TCPSocket.open(host, port)
a.puts(message)
Expand Down
2 changes: 1 addition & 1 deletion vim/autoload/ruby_debugger.vim
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ruby << RUBY
a = nil
host = VIM::evaluate("s:hostname")
port = VIM::evaluate("s:debugger_port")
message = VIM::evaluate("a:message")
message = VIM::evaluate("a:message").gsub("\\\"", '"')
begin
a = TCPSocket.open(host, port)
a.puts(message)
Expand Down

0 comments on commit 0086698

Please sign in to comment.