We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b18b41d commit fd4bdd6Copy full SHA for fd4bdd6
autoload/floaterm/path.vim
@@ -126,9 +126,10 @@ function! s:path_join(home, name) abort
126
endif
127
endfunction
128
129
-function! floaterm#path#get_root(path=getcwd()) abort
+function! floaterm#path#get_root(...) abort
130
+ let l:path = a:0 > 0 ? a:1 : getcwd()
131
let strict = 0
- let l:hr = s:find_root(a:path, g:floaterm_rootmarkers, strict)
132
+ let l:hr = s:find_root(l:path, g:floaterm_rootmarkers, strict)
133
if s:is_windows
134
let l:hr = s:string_replace(l:hr, '/', "\\")
135
0 commit comments