File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ IMPROVEMENTS:
41
41
* ** ` :GoTestFunc ` ** supports now testable examples [ gh-794 ]
42
42
* ** ` :GoDef ` ** can jump to existing buffers instead of opening a new window
43
43
(split, vsplit or tab). By default it's disabled to not break the old
44
- behavior, can be enabled with ` let g:go_def_use_buffer = 1 `
44
+ behavior, can be enabled with ` let g:go_def_reuse_buffer = 1 `
45
45
46
46
BUG FIXES:
47
47
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function! s:jump_to_declaration(out, mode)
68
68
69
69
" jump to existing buffer if, 1. we have enabled it, 2. the buffer is loaded
70
70
" and 3. there is buffer window number we switch to
71
- if get (g: , ' go_def_use_buffer ' , 0 ) && bufloaded (filename) != 0 && bufwinnr (filename) != -1
71
+ if get (g: , ' go_def_reuse_buffer ' , 0 ) && bufloaded (filename) != 0 && bufwinnr (filename) != -1
72
72
" jumpt to existing buffer if it exists
73
73
execute bufwinnr (filename) . ' wincmd w'
74
74
elseif a: mode == " tab"
Original file line number Diff line number Diff line change @@ -745,17 +745,17 @@ Goto declaration/definition. Results are shown in the current buffer.
745
745
*(go-def-split)*
746
746
747
747
Goto declaration/definition. Results are shown in a split window.
748
- Jumps to an existing buffer if | g:go_def_use_buffer | is enabled.
748
+ Jumps to an existing buffer if | g:go_def_reuse_buffer | is enabled.
749
749
750
750
*(go-def-vertical)*
751
751
752
752
Goto declaration/definition. Results are shown in a vertical split window.
753
- Jumps to an existing buffer if | g:go_def_use_buffer | is enabled.
753
+ Jumps to an existing buffer if | g:go_def_reuse_buffer | is enabled.
754
754
755
755
*(go-def-tab)*
756
756
757
757
Goto declaration/definition. Results are shown in a tab window.
758
- Jumps to an existing buffer if | g:go_def_use_buffer | is enabled.
758
+ Jumps to an existing buffer if | g:go_def_reuse_buffer | is enabled.
759
759
760
760
*(go-def-stack)*
761
761
@@ -970,12 +970,12 @@ these keys or mappings. Default is enabled. >
970
970
971
971
let g:go_def_mapping_enabled = 1
972
972
<
973
- *'g:go_def_use_buffer '*
973
+ *'g:go_def_reuse_buffer '*
974
974
975
975
Use this option to jump to an existing buffer for the split, vsplit and tab
976
976
mappings of | :GoDef | . By default it's disabled. >
977
977
978
- let g:go_def_use_buffer = 0
978
+ let g:go_def_reuse_buffer = 0
979
979
<
980
980
981
981
*'g:go_dispatch_enabled'*
You can’t perform that action at this time.
0 commit comments