Use upstream updated zyedidia tcell

This commit is contained in:
Zachary Yedidia
2019-12-31 20:15:45 -05:00
parent 6632ab0a77
commit 0301e3539e
20 changed files with 23 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/zyedidia/micro/internal/shell"
"github.com/zyedidia/micro/internal/util"
"github.com/zyedidia/micro/pkg/shellwords"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
)
// ScrollUp is not an action

View File

@@ -9,7 +9,7 @@ import (
"unicode"
"github.com/flynn/json5"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
"github.com/zyedidia/micro/internal/config"
"github.com/zyedidia/micro/internal/screen"
)

View File

@@ -6,7 +6,7 @@ import (
luar "layeh.com/gopher-luar"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
lua "github.com/yuin/gopher-lua"
"github.com/zyedidia/micro/internal/buffer"
"github.com/zyedidia/micro/internal/config"
@@ -266,9 +266,9 @@ func (h *BufPane) HandleEvent(event tcell.Event) {
// esc: e.EscSeq(),
// }
// h.DoKeyEvent(re)
// case *tcell.EventPaste:
// h.paste(e.Text())
// h.Relocate()
case *tcell.EventPaste:
h.paste(e.Text())
h.Relocate()
case *tcell.EventKey:
ke := KeyEvent{
code: e.Key(),

View File

@@ -1,7 +1,7 @@
package action
import (
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
)
type Event interface{}

View File

@@ -7,7 +7,7 @@ import (
"github.com/zyedidia/micro/internal/display"
"github.com/zyedidia/micro/internal/info"
"github.com/zyedidia/micro/internal/util"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
)
type InfoKeyAction func(*InfoPane)

View File

@@ -3,7 +3,7 @@ package action
import (
"reflect"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
"github.com/zyedidia/micro/internal/buffer"
"github.com/zyedidia/micro/internal/display"
)

View File

@@ -6,7 +6,7 @@ import (
"github.com/zyedidia/micro/internal/display"
"github.com/zyedidia/micro/internal/screen"
"github.com/zyedidia/micro/internal/views"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
)
// The TabList is a list of tabs and a window to display the tab bar

View File

@@ -3,7 +3,7 @@ package action
import (
"runtime"
"github.com/gdamore/tcell"
"github.com/zyedidia/tcell"
"github.com/zyedidia/clipboard"
"github.com/zyedidia/micro/internal/display"
"github.com/zyedidia/micro/internal/screen"
@@ -78,7 +78,7 @@ func (t *TermPane) HandleEvent(event tcell.Event) {
clipboard.WriteAll(t.GetSelection(t.GetView().Width), "clipboard")
InfoBar.Message("Copied selection to clipboard")
} else if t.Status != shell.TTDone {
// t.WriteString(event.EscSeq())
t.WriteString(string(e.Rune()))
}
} else if e, ok := event.(*tcell.EventMouse); e != nil && (!ok || t.State.Mode(terminal.ModeMouseMask)) {
// t.WriteString(event.EscSeq())