File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ function carbon.tabe()
160
160
view .execute (function (ctx )
161
161
view .handle_sidebar_or_float ()
162
162
vim .cmd .tabedit ({
163
- ctx .cursor .line .entry .path ,
163
+ vim . fn . fnameescape ( ctx .cursor .line .entry .path ) ,
164
164
mods = { keepalt = # vim .fn .getreg (' #' ) ~= 0 },
165
165
})
166
166
end )
@@ -177,7 +177,7 @@ function carbon.edit()
177
177
else
178
178
view .handle_sidebar_or_float ()
179
179
vim .cmd .edit ({
180
- ctx .cursor .line .entry .path ,
180
+ vim . fn . fnameescape ( ctx .cursor .line .entry .path ) ,
181
181
mods = { keepalt = # vim .fn .getreg (' #' ) ~= 0 },
182
182
})
183
183
end
@@ -192,7 +192,7 @@ function carbon.split()
192
192
end
193
193
194
194
view .handle_sidebar_or_float ()
195
- vim .cmd .split (ctx .cursor .line .entry .path )
195
+ vim .cmd .split (vim . fn . fnameescape ( ctx .cursor .line .entry .path ) )
196
196
end
197
197
end )
198
198
end
@@ -205,7 +205,7 @@ function carbon.vsplit()
205
205
end
206
206
207
207
view .handle_sidebar_or_float ()
208
- vim .cmd .vsplit (ctx .cursor .line .entry .path )
208
+ vim .cmd .vsplit (vim . fn . fnameescape ( ctx .cursor .line .entry .path ) )
209
209
end
210
210
end )
211
211
end
You can’t perform that action at this time.
0 commit comments