Skip to content
Browse files

Don't send backslash as part of "classfor" object.

  • Loading branch information...
1 parent 9470f75 commit 15c19c25f984d5f3249512418b85aa96a81b96fd @jalvesaq jalvesaq committed Oct 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 r-plugin/common_global.vim
View
2 r-plugin/common_global.vim
@@ -182,6 +182,7 @@ function RCompleteArgs()
call cursor(lnum, idx)
let rkeyword0 = RGetKeyWord()
let classfor = RGetClassFor(rkeyword0)
+ let classfor = substitute(classfor, '\\', "", "g")
let classfor = substitute(classfor, '"', '\\"', "g")
let rkeyword = '^' . rkeyword0 . "\x06"
call cursor(cpos[1], cpos[2])
@@ -1971,6 +1972,7 @@ function ShowRDoc(rkeyword, package, getclass)
elseif a:package != ""
exe 'Py SendToR("vim.help(' . "'" . a:rkeyword . "', " . g:rplugin_htw . "L, package='" . a:package . "')". '")'
else
+ let classfor = substitute(classfor, '\\', "", "g")
let classfor = substitute(classfor, '"', '\\"', "g")
exe 'Py SendToR("vim.help(' . "'" . a:rkeyword . "', " . g:rplugin_htw . "L, " . classfor . ")". '")'
endif

0 comments on commit 15c19c2

Please sign in to comment.
Something went wrong with that request. Please try again.