File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,16 @@ local winbar_info = {
77
77
require (" dap-view.term.init" ).setup_term_win_cmd ()
78
78
end
79
79
80
+ -- Set options before changing the buffer
81
+ -- The change in buffer would unassign the state.winnr
82
+ -- Since the buffer wouldn't have a filetype
83
+ -- See https://github.com/igorlfs/nvim-dap-view/issues/69
84
+ require (" dap-view.term.options" ).set_options (state .winnr , state .term_bufnr )
85
+
80
86
api .nvim_win_call (state .winnr , function ()
81
87
api .nvim_set_current_buf (state .term_bufnr )
82
88
end )
83
89
84
- require (" dap-view.term.options" ).set_options (state .winnr , state .term_bufnr )
85
-
86
90
M .set_winbar_action_keymaps (state .term_bufnr )
87
91
M .update_section (" console" )
88
92
end
You can’t perform that action at this time.
0 commit comments