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

Function LineTextInCurrentBuffer

python/ycm/vimsupport.py:1201–1203  ·  view source on GitHub ↗

Returns the text on the 1-indexed line (NOT 0-indexed)

( line_number )

Source from the content-addressed store, hash-verified

1199
1200
1201def LineTextInCurrentBuffer( line_number ):
1202 """ Returns the text on the 1-indexed line (NOT 0-indexed) """
1203 return vim.current.buffer[ line_number - 1 ]
1204
1205
1206def ClosePreviewWindow():

Callers 1

InsertNamespaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected