mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-13 19:10:58 +00:00
Fix newline state
This commit is contained in:
parent
7fe2b8ef2f
commit
1ba51e4f59
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ func (la *LineArray) String() string {
|
|||
func (la *LineArray) NewlineBelow(y int) {
|
||||
la.lines = append(la.lines, Line{[]byte(" "), nil, nil, false})
|
||||
copy(la.lines[y+2:], la.lines[y+1:])
|
||||
la.lines[y+1] = Line{[]byte(""), nil, nil, false}
|
||||
la.lines[y+1] = Line{[]byte(""), la.lines[y].state, nil, false}
|
||||
}
|
||||
|
||||
// inserts a byte array at a given location
|
||||
|
|
|
|||
Loading…
Reference in a new issue