MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / CurrentLineAndColumn

Function CurrentLineAndColumn

python/ycm/vimsupport.py:64–70  ·  view source on GitHub ↗

Returns the 0-based current line and 0-based current column.

()

Source from the content-addressed store, hash-verified

62
63
64def CurrentLineAndColumn():
65 """Returns the 0-based current line and 0-based current column."""
66 # See the comment in CurrentColumn about the calculation for the line and
67 # column number
68 line, column = vim.current.window.cursor
69 line -= 1
70 return line, column
71
72
73def SetCurrentLineAndColumn( line, column ):

Callers 1

ReplaceChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected