Skip to content
Myr

refactor: omit unnecessary reassignment (#1515)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by goldlinker · committed by GitHub · parent 554a947 · Browse files · 2 files+0 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: goldlinker <goldlinker@outlook.jp>

Diff stats

2 files+0 added−2 removed

  • other:+0 added−2 removed

2 files+0 added−2 removed

modified:key_sequences.go-1 removed
12 unmodified lines
13// by detectOneMsg.14var extSequences = func() map[string]Key {15 s := map[string]Key{}16 for seq, key := range sequences {17 key := key17 s[seq] = key18 if !key.Alt {19 key.Alt = true20 s["\x1b"+seq] = key
109 unmodified lines
modified:key_test.go-1 removed
67 unmodified lines
68// detectSequence() function.69func buildBaseSeqTests() []seqTest {70 td := []seqTest{}71 for seq, key := range sequences {72 key := key72 td = append(td, seqTest{[]byte(seq), KeyMsg(key)})73 if !key.Alt {74 key.Alt = true75 td = append(td, seqTest{[]byte("\x1b" + seq), KeyMsg(key)})
659 unmodified lines