Skip to content

Commit

Permalink
Remove last path sep from project path.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 5, 2023
1 parent 9174c62 commit cba7cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cba7cd6

Please sign in to comment.