Skip to content

Commit

Permalink
Deleted the unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Uchino Jun committed Apr 26, 2019
1 parent b2e6c71 commit 093d762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion up.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (e *Editor) HandleKey(ev *tcell.EventKey) bool {
// move right until the next primary rune or the end of line
if e.cursor < len(e.value) {
e.cursor++
for e.cursor < len(e.value) && unicode.IsMark(rune(e.value[e.cursor])) {
for e.cursor < len(e.value) && unicode.IsMark(e.value[e.cursor]) {
e.cursor++
}
}
Expand Down

0 comments on commit 093d762

Please sign in to comment.