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

Method newLineEx

internal/app/darktile/termutil/buffer.go:567–581  ·  view source on GitHub ↗
(forceCursorToMargin bool)

Source from the content-addressed store, hash-verified

565}
566
567func (buffer *Buffer) newLineEx(forceCursorToMargin bool) {
568
569 if buffer.IsNewLineMode() || forceCursorToMargin {
570 buffer.cursorPosition.Col = 0
571 }
572 buffer.index()
573
574 for {
575 line := buffer.getCurrentLine()
576 if !line.wrapped {
577 break
578 }
579 buffer.index()
580 }
581}
582
583func (buffer *Buffer) movePosition(x int16, y int16) {
584

Callers 3

writeMethod · 0.95
newLineMethod · 0.95
handleANSIMethod · 0.80

Calls 3

IsNewLineModeMethod · 0.95
indexMethod · 0.95
getCurrentLineMethod · 0.95

Tested by

no test coverage detected