crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
table
ROOT
/
widgets
/
textinput
/
editor.go
Search
History
418 lines
|
UTF-8
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
fieldData
String
()
:
string
minForArrows
curMinIdx
(start, cells int)
:
int
curMaxIdx
(start, end, cells, runeCount int)
:
int
fieldEditor
data
:
fieldData
curDataPos
:
int
firstRune
:
int
width
:
int
newFieldEditor
()
:
*fieldEditor
minFieldWidth
*fieldData
insertAt
(idx int, r rune)
deleteAt
(idx int)
cellsBefore
(cells, endIdx int)
:
int
cellsAfter
(cells, startIdx int)
:
int
shiftLeft
(start, cells, curDataPos int)
:
(int, int)
shiftRight
(start, cells, curDataPos int)
:
(int, int)
lastVisible
(end int)
:
bool
runesIn
(start, end int)
:
[]rune
fitRunes
(firstRune, curPos, cells int)
:
(string, int, int)
*fieldEditor
curCell
(width int)
:
int
viewFor
(width int)
:
(string, int, error)
content
()
:
string
reset
()
insert
(r rune)
delete
()
deleteBefore
()
cursorRight
()
cursorLeft
()
cursorStart
()
cursorEnd
()
cursorRelCell
(cellIdx int)
All occurrences
Please wait...
Page is in error, reload to recover