mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +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:
@@ -624,7 +624,8 @@ func (v *View) DisplayView() {
|
||||
}
|
||||
|
||||
// Now we actually draw the line
|
||||
for colN, ch := range line {
|
||||
colN := 0
|
||||
for _, ch := range line {
|
||||
lineStyle := defStyle
|
||||
|
||||
if settings["syntax"].(bool) {
|
||||
@@ -709,6 +710,7 @@ func (v *View) DisplayView() {
|
||||
}
|
||||
charNum = charNum.Move(1, v.Buf)
|
||||
screenX++
|
||||
colN++
|
||||
}
|
||||
// Here we are at a newline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user