config: Don't hardcode the fakecursor under Windows console any longer (#3959)

* config: Don't hardcode the `fakecursor` under Windows console any longer

We just set the global default and allow the user to override it.

* help: Add a concrete note for the `fakecursor` option in the Windows Console
This commit is contained in:
Jöran Karl
2026-01-10 20:13:29 +01:00
committed by GitHub
parent 6a62575bcf
commit 9a6c827880
4 changed files with 13 additions and 10 deletions

View File

@@ -8,7 +8,6 @@ import (
"github.com/micro-editor/tcell/v2"
"github.com/zyedidia/micro/v2/internal/config"
"github.com/zyedidia/micro/v2/internal/util"
)
// Screen is the tcell screen we use to draw to the terminal
@@ -90,7 +89,7 @@ func ShowFakeCursor(x, y int) {
}
func UseFake() bool {
return util.FakeCursor || config.GetGlobalOption("fakecursor").(bool)
return config.GetGlobalOption("fakecursor").(bool)
}
// ShowFakeCursorMulti is the same as ShowFakeCursor except it does not