MCPcopy
hub / github.com/ycm-core/YouCompleteMe / RemoveTextProperty

Function RemoveTextProperty

python/ycm/vimsupport.py:383–396  ·  view source on GitHub ↗
( buffer_number, line_num, prop_id, prop_type )

Source from the content-addressed store, hash-verified

381
382
383def RemoveTextProperty( buffer_number, line_num, prop_id, prop_type ):
384 if not VimIsNeovim():
385 p = {
386 'bufnr': buffer_number,
387 'id': prop_id,
388 'type': prop_type,
389 'both': 1,
390 'all': 1
391 }
392 vim.eval( f'prop_remove( { p }, { line_num } )' )
393 else:
394 vim.eval( f'nvim_buf_del_extmark( { buffer_number }, '
395 f'{ YCM_NEOVIM_NS_ID }, '
396 f'{ prop_id } )' )
397
398
399# Clamps the line and column numbers so that they are not past the contents of

Callers 1

RemoveDiagnosticPropertyFunction · 0.85

Calls 1

VimIsNeovimFunction · 0.85

Tested by

no test coverage detected