Skip to content

Commit fcab782

Browse files
Fix startup paths with spaces
1 parent a72a8d8 commit fcab782

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ highlighting.
5858
- Initial working folder should check if any MATLAB files are present
5959
- Add a nice demo gif to this README
6060
- Display breakpoints (?)
61-
- Paths with spaces do not work
6261
- Running blocks - pretty tricky, I would need to find the code inside this group of percentage sign, strip out all
6362
comments and empty lines, add them all together with correct escaping and send it into a tmux command to be executed.
6463

autoload/matlab.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function! matlab#start_server(...)
1818
if matlab#_get_server_pane() == -1
1919
" Create new pane, start matlab in it and save its id
2020
" Yeah, this is a reeeeally long command
21-
let startup_command = 'cd '.matlab#_get_project_root().';'
21+
let startup_command = 'cd '.shellescape(matlab#_get_project_root()).';'
2222

2323
" Treat optional second argument: add command to startup
2424
if a:0 > 1

0 commit comments

Comments
 (0)