diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-12 20:39:34 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-12 20:39:34 +0000 |
| commit | b4f6b50dbb06202deb906cd0c34fca00f46c219e (patch) | |
| tree | 9838e5a4b406e7bb6f6ad5ce511767f579121c8e /src/shell_manager.cc | |
| parent | 2f20399d03277b1a2d4c92ad97ed751c12e2c6a8 (diff) | |
Make split_path public
Diffstat (limited to 'src/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |
