go fmt
This commit is contained in:
parent
e2a4fc7e7c
commit
5fef5598de
@ -289,7 +289,7 @@ func (t *TextEdit) CursorUp() {
|
||||
if t.UseHardTabs { // When using hard tabs, subtract offsets produced by tabs
|
||||
tabOffset := t.getTabOffsetInLineAtCol(t.cury-1, t.prevCurCol)
|
||||
hardTabs := tabOffset / t.TabSize
|
||||
col -= tabOffset-hardTabs // We still want to count each \t in the col
|
||||
col -= tabOffset - hardTabs // We still want to count each \t in the col
|
||||
}
|
||||
line, col := t.clampLineCol(t.cury-1, col)
|
||||
t.SetLineCol(line, col)
|
||||
@ -305,7 +305,7 @@ func (t *TextEdit) CursorDown() {
|
||||
if t.UseHardTabs {
|
||||
tabOffset := t.getTabOffsetInLineAtCol(t.cury+1, t.prevCurCol)
|
||||
hardTabs := tabOffset / t.TabSize
|
||||
col -= tabOffset-hardTabs // We still want to count each \t in the col
|
||||
col -= tabOffset - hardTabs // We still want to count each \t in the col
|
||||
}
|
||||
line, col := t.clampLineCol(t.cury+1, col)
|
||||
t.SetLineCol(line, col) // Go to line below
|
||||
@ -320,7 +320,7 @@ func (t *TextEdit) CursorLeft() {
|
||||
t.SetLineCol(t.cury, t.curx-1)
|
||||
}
|
||||
tabOffset := t.getTabOffsetInLineAtCol(t.cury, t.curx)
|
||||
t.prevCurCol = t.curx+tabOffset
|
||||
t.prevCurCol = t.curx + tabOffset
|
||||
}
|
||||
|
||||
// CursorRight moves the cursor right a column.
|
||||
|
@ -42,7 +42,7 @@ var DefaultTheme = Theme{
|
||||
"TabSelected": tcell.Style{}.Foreground(tcell.ColorBlack).Background(tcell.ColorSilver),
|
||||
"TextEdit": tcell.Style{}.Foreground(tcell.ColorSilver).Background(tcell.ColorBlack),
|
||||
"TextEditColumn": tcell.Style{}.Foreground(tcell.ColorBlack).Background(tcell.ColorGray),
|
||||
"TextEditSelected":tcell.Style{}.Foreground(tcell.ColorBlack).Background(tcell.ColorSilver),
|
||||
"TextEditSelected": tcell.Style{}.Foreground(tcell.ColorBlack).Background(tcell.ColorSilver),
|
||||
"Window": tcell.Style{}.Foreground(tcell.ColorBlack).Background(tcell.ColorSilver),
|
||||
"WindowHeader": tcell.Style{}.Foreground(tcell.ColorBlack).Background(tcell.ColorWhite),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user