mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
Fix some issues with unicode handling
There were unicode issues with prompts, search, and syntax highlighting, which are now fixed.
This commit is contained in:
@@ -249,7 +249,7 @@ func (m *Messenger) HandleEvent(event tcell.Event, history []string) {
|
||||
}
|
||||
case tcell.KeyBackspace2, tcell.KeyBackspace:
|
||||
if m.cursorx > 0 {
|
||||
m.response = string([]rune(m.response)[:m.cursorx-1]) + string(m.response[m.cursorx:])
|
||||
m.response = string([]rune(m.response)[:m.cursorx-1]) + string([]rune(m.response)[m.cursorx:])
|
||||
m.cursorx--
|
||||
}
|
||||
case tcell.KeyRune:
|
||||
|
||||
Reference in New Issue
Block a user