From b4f6b50dbb06202deb906cd0c34fca00f46c219e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 12 Mar 2015 20:39:34 +0000 Subject: Make split_path public --- src/shell_manager.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/shell_manager.cc') diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 6b82ba91..1c614455 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -22,9 +22,7 @@ ShellManager::ShellManager() if (path) new_path = path + ":"_str; - String kak_path = get_kak_binary_path(); - StringView kak_dir{kak_path.begin(), find(reversed(kak_path), '/').base()-1}; - new_path += kak_dir; + new_path += split_path(get_kak_binary_path()).first; setenv("PATH", new_path.c_str(), 1); } -- cgit v1.2.3