From a96cd445ff35e23ddf33b16f07b7f35ca8f89629 Mon Sep 17 00:00:00 2001 From: Hielke Walinga Date: Tue, 13 Feb 2024 20:15:31 +0100 Subject: [PATCH] A single slash must be escaped with another slash. (Deprecation in 3.12) --- script/tern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/tern.py b/script/tern.py index e38a369..e71ed77 100644 --- a/script/tern.py +++ b/script/tern.py @@ -367,7 +367,7 @@ def tern_lookupDefinition(cmd): vim.command("normal! m`") vim.command("call cursor(" + str(lnum) + "," + str(col) + ")") else: - vim.command(cmd + " +call\ cursor(" + str(lnum) + "," + str(col) + ") " + + vim.command(cmd + " +call\\ cursor(" + str(lnum) + "," + str(col) + ") " + tern_projectFilePath(filename).replace(" ", "\\ ")) elif "url" in data: print("see " + data["url"])