aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTommy Allen <tommy@esdf.io>2017-01-24 22:59:07 -0500
committerJustin M. Keyes <justinkz@gmail.com>2017-01-31 00:48:30 +0100
commitbdfa1479d296bbc734abc60be1544eb72d315325 (patch)
tree808f4a8685ac317a2923e2ef8fb3aff905fa7424 /src
parent81525dc5c35c350c1e7e29c625368263cc8b3e33 (diff)
downloadrneovim-bdfa1479d296bbc734abc60be1544eb72d315325.tar.gz
rneovim-bdfa1479d296bbc734abc60be1544eb72d315325.tar.bz2
rneovim-bdfa1479d296bbc734abc60be1544eb72d315325.zip
eval.c: Fix findfile(), :find, gf in :terminal. #6009
Closes #4299
Diffstat (limited to 'src')
-rw-r--r--src/nvim/file_search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index 73faac0a43..d733ba311a 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -1370,6 +1370,11 @@ find_file_in_path_option (
char_u *buf = NULL;
int rel_to_curdir;
+ if (rel_fname != NULL && path_with_url((const char *)rel_fname)) {
+ // Do not attempt to search "relative" to a URL. #6009
+ rel_fname = NULL;
+ }
+
if (first == TRUE) {
/* copy file name into NameBuff, expanding environment variables */
save_char = ptr[len];