diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-06-11 14:38:12 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-06-11 14:38:12 +0200 |
| commit | 4dcc77f638829110b8b6417272fcbf07bde64a24 (patch) | |
| tree | b3ea7c05c54e981b9f8cd3edf3326011a31d6cca /init.lua | |
| parent | 2999fa13ee7860a39a0b07a74dbf6dc52bfd83ae (diff) | |
| download | vis-lspc-4dcc77f638829110b8b6417272fcbf07bde64a24.tar.gz vis-lspc-4dcc77f638829110b8b6417272fcbf07bde64a24.zip | |
fix log file creation for paths including spaces
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -104,7 +104,7 @@ do local log_file_fmt = log_dir .. '/%s-%s.log' local timestamp = os.date('%Y-%m-%dT%H:%M:%S') local cwd = capture_cmd('pwd') - local basename_cwd = capture_cmd('basename ' .. cwd):match('^%s*(.-)%s*$') + local basename_cwd = capture_cmd('basename "' .. cwd .. '"'):match('^%s*(.-)%s*$') log_file = log_file_fmt:format(timestamp, basename_cwd) elseif type(log_file) == 'function' then |
