mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Fix windows errors
This commit is contained in:
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -55,9 +55,9 @@
|
||||
[submodule "cmd/micro/vendor/github.com/flynn/json5"]
|
||||
path = cmd/micro/vendor/github.com/flynn/json5
|
||||
url = https://github.com/flynn/json5
|
||||
[submodule "cmd/micro/vendor/github.com/james4k/terminal"]
|
||||
path = cmd/micro/vendor/github.com/james4k/terminal
|
||||
url = https://github.com/james4k/terminal
|
||||
[submodule "cmd/micro/vendor/github.com/kr/pty"]
|
||||
path = cmd/micro/vendor/github.com/kr/pty
|
||||
url = https://github.com/kr/pty
|
||||
[submodule "cmd/micro/vendor/github.com/zyedidia/terminal"]
|
||||
path = cmd/micro/vendor/github.com/zyedidia/terminal
|
||||
url = https://github.com/zyedidia/terminal
|
||||
|
||||
1
cmd/micro/vendor/github.com/james4k/terminal
generated
vendored
1
cmd/micro/vendor/github.com/james4k/terminal
generated
vendored
Submodule cmd/micro/vendor/github.com/james4k/terminal deleted from b4bcb6ee7c
1
cmd/micro/vendor/github.com/zyedidia/terminal
generated
vendored
Submodule
1
cmd/micro/vendor/github.com/zyedidia/terminal
generated
vendored
Submodule
Submodule cmd/micro/vendor/github.com/zyedidia/terminal added at 7281cdf385
@@ -9,8 +9,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/james4k/terminal"
|
||||
"github.com/zyedidia/tcell"
|
||||
"github.com/zyedidia/terminal"
|
||||
)
|
||||
|
||||
// The ViewType defines what kind of view this is
|
||||
@@ -557,7 +557,7 @@ func (v *View) SetCursor(c *Cursor) bool {
|
||||
// HandleEvent handles an event passed by the main loop
|
||||
func (v *View) HandleEvent(event tcell.Event) {
|
||||
if v.Type == vtTerm {
|
||||
if _, ok := event.(*tcell.EventMouse); !ok {
|
||||
if _, ok := event.(*tcell.EventMouse); !ok || v.termState.Mode(terminal.ModeMouseMask) {
|
||||
v.pty.WriteString(event.EscSeq())
|
||||
}
|
||||
return
|
||||
|
||||
@@ -24,7 +24,6 @@ type MultiRule struct {
|
||||
func JoinRule(rule string) string {
|
||||
split := strings.Split(rule, `" "`)
|
||||
joined := strings.Join(split, "|")
|
||||
joined = joined
|
||||
return joined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user