From cba7cd629f5b0c9e426eb40b3723a2ae338e8eea Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Sun, 5 Nov 2023 11:42:08 +0800 Subject: [PATCH] Remove last path sep from project path. --- lsp_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp_bridge.py b/lsp_bridge.py index 54afe73b2c..d01cd6aee0 100755 --- a/lsp_bridge.py +++ b/lsp_bridge.py @@ -595,7 +595,7 @@ def enjoy_hacking(self, servers, project_path): message_emacs("Active {} '{}', enjoy hacking!".format( "project" if os.path.isdir(project_path) else "file", - os.path.basename(project_path))) + os.path.basename(project_path.rstrip(os.path.sep)))) def load_single_lang_server(self, project_path, filepath): single_lang_server = get_emacs_func_result("get-single-lang-server", project_path, filepath)