Ticket #27 (new defect)

Opened 4 years ago

Protect url string when calling DocBrowser

Reported by: Erèbe Owned by: claus
Priority: major Milestone:
Component: ftplugin/haskell_doc.vim Version:
Keywords: DocBrowser Cc:


Problem : The doc from remote source (http) is not open when you have zsh shell

Fix: Protect url string when calling the browser In "function! DocBrowser?(url)" of "haskell_doc.vim"

replace this line
silent exe '!'.printf(g:haddock_browser_callformat,g:haddock_browser,escape(url,'#%'))
by this one
silent exe '!'.printf(g:haddock_browser_callformat,g:haddock_browser,"'".escape(url,'#%')."'")

Please note the quote protecting the url string


Note: See TracTickets for help on using tickets.