Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. diff --git a/bin/themis b/bin/themis
  2. index 52a2792..ed26c7e 100755
  3. --- a/bin/themis
  4. +++ b/bin/themis
  5. @@ -22,4 +22,4 @@ if [ ! -f "${STARTUP_SCRIPT}" ]; then
  6. exit 2
  7. fi
  8.  
  9. -"${THEMIS_VIM}" -u NONE -i NONE -n -N ${THEMIS_ARGS} --cmd "source ${STARTUP_SCRIPT}" -- "$@" 3>&1 1>&2 2>&3 3>&-
  10. +"${THEMIS_VIM}" -u NONE -i NONE -n -N ${THEMIS_ARGS} --cmd "let g:themis#args = '$*'" --cmd "source ${STARTUP_SCRIPT}" -- 3>&1 1>&2 2>&3 3>&-
  11. diff --git a/macros/themis_startup.vim b/macros/themis_startup.vim
  12. index 6ed7614..c00b19f 100644
  13. --- a/macros/themis_startup.vim
  14. +++ b/macros/themis_startup.vim
  15. @@ -20,17 +20,7 @@ endfunction
  16. function! s:start() abort
  17. let g:themis#cmdline = 1
  18. call s:append_rtp(s:themis_home)
  19. - let args = argv()
  20. - if 0 < len(args)
  21. - " Remove arglist for plain environment
  22. - execute '1,' . len(args) . 'argdelete'
  23. -
  24. - " Delete all the buffers
  25. - for bufnr in range(1, bufnr('$'))
  26. - execute bufnr 'bwipeout!'
  27. - endfor
  28. - endif
  29. -
  30. + let args = split(g:themis#args, ' ')
  31. return themis#command#start(args)
  32. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement