vendor: github.com/mattn/go-runewidth v0.0.17

full diff: https://github.com/mattn/go-runewidth/compare/v0.0.16...v0.0.17

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-09-25 19:44:27 +02:00
parent 6855d70c52
commit 4287f1d887
4 changed files with 10 additions and 4 deletions

View File

@ -4,6 +4,7 @@
package runewidth
import (
"os"
"syscall"
)
@ -14,6 +15,11 @@ var (
// IsEastAsian return true if the current locale is CJK
func IsEastAsian() bool {
if os.Getenv("WT_SESSION") != "" {
// Windows Terminal always not use East Asian Ambiguous Width(s).
return false
}
r1, _, _ := procGetConsoleOutputCP.Call()
if r1 == 0 {
return false