mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-10-31 11:31:48 +00:00
Use rune arrays instead of go strings for UTF-8 support
This commit is contained in:
5 files changed
+111
-72
No files matched your search
+1
-1
@@ -143,7 +143,7 @@ func getBufferInfoMsg(window *Window) string {
|
||||
|
||||
contents := window.CurrentBuffer.GetContentsAsString()
|
||||
chars := len(contents)
|
||||
words := len(strings.Fields(contents))
|
||||
words := len(strings.Fields(string(contents)))
|
||||
|
||||
ret := Config.BufferInfoMessage
|
||||
|
||||
|
||||
Reference in new issue
Block a user