making sure that float window is not modifiable inside nvim
This commit is contained in:
parent
f60b259dbc
commit
04a5e889f9
2 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ function! vimspector#internal#balloon#CreateTooltip(is_hover, ...)
|
|||
" create the content window
|
||||
let buf_id = nvim_create_buf(v:false, v:true)
|
||||
call nvim_buf_set_lines(buf_id, 0, -1, v:true, body)
|
||||
call nvim_buf_set_option(buf_id, 'modifiable', v:false)
|
||||
let s:float_win = nvim_open_win(buf_id, v:false, opts)
|
||||
|
||||
call nvim_win_set_option(s:float_win, 'wrap', v:true)
|
||||
|
|
|
|||
|
|
@ -272,6 +272,7 @@ class VariablesView( object ):
|
|||
|
||||
def _DrawEval(self):
|
||||
with utils.RestoreCursorPosition():
|
||||
with utils.ModifiableScratchBuffer( self._variable_eval_view.buf ):
|
||||
utils.ClearBuffer( self._variable_eval_view.buf )
|
||||
icon = '+' if self._variable_eval.IsExpandable() and not self._variable_eval.IsExpanded() else '-'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue