Commit 68d9687
authored
Fix invalid buffer error on session.close/diagnostic reset (#779)
Swapping the session close and the reset of the namespace should fix the following error:
```
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
stack traceback:
[C]: in function 'nvim_exec_autocmds'
/usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'
/home/louis/.config/nvim/after/nvim-dap/lua/dap/session.lua:1399: in function 'close'
/home/louis/.config/nvim/after/nvim-dap/lua/dap/session.lua:703: in function 'callback'
/home/louis/.config/nvim/after/nvim-dap/lua/dap/session.lua:958: in function </home/louis/.config/nvim/after/nvim-dap/lua/dap/session.lua:950>
```
Signed-off-by: Louis DeLosSantos <[email protected]>1 parent a8fd28a commit 68d9687
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
1398 | | - | |
1399 | 1398 | | |
| 1399 | + | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
| |||
0 commit comments