File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed
Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -627,22 +627,23 @@ commandt.file_finder = function(directory)
627627 end
628628
629629 local finder = require (' wincent.commandt.private.finders.file' )(' .' , options )
630- ui .show (finder , merge (options , {
631- name = ' file' ,
632- on_open = function (result )
633- if previous_cwd ~= next_cwd then
634- result = vim .fs .normalize (
635- vim .fs .joinpath (next_cwd , result )
636- )
637- end
638- return result
639- end ,
640- on_close = function ()
641- if previous_cwd ~= next_cwd then
642- vim .fn .chdir (previous_cwd )
643- end
644- end ,
645- }))
630+ ui .show (
631+ finder ,
632+ merge (options , {
633+ name = ' file' ,
634+ on_open = function (result )
635+ if previous_cwd ~= next_cwd then
636+ result = vim .fs .normalize (vim .fs .joinpath (next_cwd , result ))
637+ end
638+ return result
639+ end ,
640+ on_close = function ()
641+ if previous_cwd ~= next_cwd then
642+ vim .fn .chdir (previous_cwd )
643+ end
644+ end ,
645+ })
646+ )
646647end
647648
648649local report_errors = function (errors , heading )
You can’t perform that action at this time.
0 commit comments