MCPcopy
hub / github.com/liamg/darktile / GetCell

Method GetCell

internal/app/darktile/termutil/buffer.go:187–190  ·  view source on GitHub ↗
(viewCol uint16, viewRow uint16)

Source from the content-addressed store, hash-verified

185}
186
187func (buffer *Buffer) GetCell(viewCol uint16, viewRow uint16) *Cell {
188 rawLine := buffer.convertViewLineToRawLine(viewRow)
189 return buffer.getRawCell(viewCol, rawLine)
190}
191
192func (buffer *Buffer) getRawCell(viewCol uint16, rawLine uint64) *Cell {
193 if rawLine >= uint64(len(buffer.lines)) {

Callers 8

drawSelectionMethod · 0.80
handleLigaturesMethod · 0.80
drawRowMethod · 0.80
drawCursorMethod · 0.80
TestGetCellFunction · 0.80
TestGetCellWithHistoryFunction · 0.80
TestGetCellWithBadCursorFunction · 0.80
sgrSequenceHandlerMethod · 0.80

Calls 2

getRawCellMethod · 0.95

Tested by 3

TestGetCellFunction · 0.64
TestGetCellWithHistoryFunction · 0.64
TestGetCellWithBadCursorFunction · 0.64