From 1926db8ee80908d4566fe9afc4e044e5c542b833 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Mar 2023 08:01:34 +0530 Subject: [PATCH] Correct cursor shape when inputting search query --- tools/cmd/diff/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cmd/diff/main.go b/tools/cmd/diff/main.go index 3f1f6e1cf..b4814a859 100644 --- a/tools/cmd/diff/main.go +++ b/tools/cmd/diff/main.go @@ -139,6 +139,7 @@ func main(_ *cli.Command, opts_ *Options, args []string) (rc int, err error) { h := Handler{left: left, right: right, lp: lp} lp.OnInitialize = func() (string, error) { lp.SetCursorVisible(false) + lp.SetCursorShape(loop.BAR_CURSOR, true) lp.AllowLineWrapping(false) lp.SetWindowTitle(fmt.Sprintf("%s vs. %s", left, right)) h.initialize() @@ -147,6 +148,7 @@ func main(_ *cli.Command, opts_ *Options, args []string) (rc int, err error) { lp.OnWakeup = h.on_wakeup lp.OnFinalize = func() string { lp.SetCursorVisible(true) + lp.SetCursorShape(loop.BLOCK_CURSOR, true) return "" } lp.OnResize = h.on_resize