Skip to content

Commit

Permalink
Fix (Yohannfra#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelrojasmiliani committed Dec 3, 2023
1 parent 247694e commit c126f37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/goto_header.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function! s:CheckConfigVals()
let g:goto_header_open_in_new_tab = get(g:, 'goto_header_open_in_new_tab')
let g:goto_header_use_shorter_path = get(g:, 'goto_header_use_shorter_path')
let g:goto_header_associate_cpp_h = get(g:, 'goto_header_associate_cpp_h')
let g:goto_header_associate_h_cpp = get(g:, 'goto_header_associate_h_cpp')
endfunction

function! s:OpenFile(fp)
Expand Down Expand Up @@ -165,7 +166,7 @@ function! goto_header#Switch()
\ ".*.cpp$" : (g:goto_header_associate_cpp_h) ? ".h" : ".hpp",
\ ".*.hpp$" : ".cpp",
\ ".*.c$" : ".h",
\ ".*.h$" : ".c",
\ ".*.h$" : (g:goto_header_associate_h_cpp)? "cpp" : ".c",
\}

for key in keys(extensions_dict)
Expand Down

0 comments on commit c126f37

Please sign in to comment.