1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-05 00:59:19 +02:00

build: bump gocui

This commit is contained in:
Ryooooooga
2023-01-06 10:59:09 +09:00
parent 00b922604a
commit 657b1e897f
84 changed files with 1710 additions and 3272 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2019 The TCell Authors
// Copyright 2022 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
@ -15,6 +15,8 @@
package tcell
import (
"os"
runewidth "github.com/mattn/go-runewidth"
)
@ -175,3 +177,20 @@ func (cb *CellBuffer) Fill(r rune, style Style) {
c.width = 1
}
}
var runeConfig *runewidth.Condition;
func init() {
// The defaults for the runewidth package are poorly chosen for terminal
// applications. We however will honor the setting in the environment if
// it is set.
if os.Getenv("RUNEWIDTH_EASTASIAN") == "" {
runewidth.DefaultCondition.EastAsianWidth = false;
}
// For performance reasons, we create a lookup table. However some users
// might be more memory conscious. If that's you, set the TCELL_MINIMIZE
// environment variable.
if os.Getenv("TCELL_MINIMIZE") == "" {
runewidth.CreateLUT()
}
}