Re: PATCH: URLs can't be found in 'path'
Matt Wozniski wrote: :help 'path' says - When using |netrw.vim| URLs can be used. For example, adding http://www.vim.org; will make :find index.html work. This, however, does not actually work (and hasn't since vim 6.4.10, at least). Attached patch fixes. Thanks for the fix! -- The average life of an organization chart is six months. You can safely ignore any order from your boss that would take six months to complete. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org/// --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
PATCH: URLs can't be found in 'path'
:help 'path' says - When using |netrw.vim| URLs can be used. For example, adding http://www.vim.org; will make :find index.html work. This, however, does not actually work (and hasn't since vim 6.4.10, at least). Attached patch fixes. ~Matt --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~--- diff --git a/src/misc2.c b/src/misc2.c index 76fe2ec..1598b10 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -4696,7 +4696,9 @@ vim_findfile(search_ctx_arg) stackp-ffs_filearray_cur = i + 1; ff_push(search_ctx, stackp); -simplify_filename(file_path); +if (!path_with_url(file_path)) { +simplify_filename(file_path); +} if (mch_dirname(ff_expand_buffer, MAXPATHL) == OK) {