Use rune arrays instead of go strings for UTF-8 support

This commit is contained in:
EnumDev committed 2026-04-27 15:45:19 +03:00
1 parent 6a701dd311
commit a1e8d6c19a
5 files changed
+111 -72

No files matched your search

+1 -1
View File
@@ -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