1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 22:24:51 +02:00

fix some encodings

This commit is contained in:
Jesse Duffield
2021-09-25 12:37:37 +10:00
parent 652c97d239
commit ab0117c416
3 changed files with 33 additions and 18 deletions

View File

@@ -5,7 +5,6 @@ import (
"io/ioutil"
"log"
"os"
"runtime"
"sync"
"os/exec"
@@ -30,7 +29,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/theme"
"github.com/jesseduffield/lazygit/pkg/updates"
"github.com/jesseduffield/lazygit/pkg/utils"
"github.com/mattn/go-runewidth"
"github.com/sirupsen/logrus"
)
@@ -51,10 +49,6 @@ const StartupPopupVersion = 5
// OverlappingEdges determines if panel edges overlap
var OverlappingEdges = false
func init() {
runewidth.DefaultCondition.EastAsianWidth = false
}
type ContextManager struct {
ContextStack []Context
sync.RWMutex
@@ -497,8 +491,6 @@ func (gui *Gui) Run() error {
g.NextSearchMatchKey = gui.getKey(userConfig.Keybinding.Universal.NextMatch)
g.PrevSearchMatchKey = gui.getKey(userConfig.Keybinding.Universal.PrevMatch)
g.ASCII = runtime.GOOS == "windows" && runewidth.IsEastAsian()
g.ShowListFooter = userConfig.Gui.ShowListFooter
if userConfig.Gui.MouseEvents {