]> git.lizzy.rs Git - micro.git/blobdiff - internal/action/rawpane.go
Add golang keywords (#1455)
[micro.git] / internal / action / rawpane.go
index 58320ea22ef46aca61fa66ece912fe5486554c4f..cdeade478cee53a3dc6192028f20e6965ea76530 100644 (file)
@@ -1,11 +1,12 @@
 package action
 
 import (
+       "fmt"
        "reflect"
 
-       "github.com/zyedidia/tcell"
        "github.com/zyedidia/micro/internal/buffer"
        "github.com/zyedidia/micro/internal/display"
+       "github.com/zyedidia/tcell"
 )
 
 type RawPane struct {
@@ -34,7 +35,6 @@ func (h *RawPane) HandleEvent(event tcell.Event) {
        }
 
        h.Buf.Insert(h.Cursor.Loc, reflect.TypeOf(event).String()[7:])
-       // h.Buf.Insert(h.Cursor.Loc, fmt.Sprintf(": %q\n", event.EscSeq()))
-       h.Buf.Insert(h.Cursor.Loc, "\n")
+       h.Buf.Insert(h.Cursor.Loc, fmt.Sprintf(": %q\n", event.EscSeq()))
        h.Relocate()
 }