mirror of https://github.com/liamg/aminal.git
gofmt everythign
This commit is contained in:
parent
16e369ef1d
commit
adbbf0f5cf
|
@ -216,7 +216,6 @@ func (buffer *Buffer) StartSelection(col uint16, viewRow uint16) {
|
|||
if buffer.selectionComplete {
|
||||
buffer.selectionEnd = nil
|
||||
|
||||
|
||||
if buffer.selectionStart != nil && time.Since(buffer.selectionClickTime) < time.Millisecond*500 {
|
||||
if buffer.selectionExpanded {
|
||||
//select whole line!
|
||||
|
|
|
@ -44,7 +44,6 @@ func (gui *GUI) loadFonts() error {
|
|||
gui.fontMap.defaultBoldFont = boldFont
|
||||
}
|
||||
|
||||
|
||||
// add special non-ascii fonts here
|
||||
|
||||
return nil
|
||||
|
|
|
@ -395,6 +395,7 @@ func(gui *GUI) createWindowWithOpenGLVersion(major int, minor int) (*glfw.Window
|
|||
|
||||
return window, nil
|
||||
}
|
||||
|
||||
// initOpenGL initializes OpenGL and returns an intiialized program.
|
||||
func (gui *GUI) createProgram() (uint32, error) {
|
||||
if err := gl.Init(); err != nil {
|
||||
|
|
|
@ -57,7 +57,6 @@ func (r *OpenGLRenderer) newRectangle(x float32, y float32, colourAttr uint32) *
|
|||
halfAreaWidth := float32(r.areaWidth / 2)
|
||||
halfAreaHeight := float32(r.areaHeight / 2)
|
||||
|
||||
|
||||
x = (x - halfAreaWidth) / halfAreaWidth
|
||||
y = -(y - (halfAreaHeight)) / halfAreaHeight
|
||||
w := r.cellWidth / halfAreaWidth
|
||||
|
|
Loading…
Reference in New Issue