From fcb87b685c8dfe9232bd7d5a50b3210a6eb9f88a Mon Sep 17 00:00:00 2001 From: kai Date: Wed, 1 Mar 2023 13:45:34 +0000 Subject: [PATCH] Fix interactive prompt adding extra spaces when showing status messages when fdw is updated. Closes #3173 --- pkg/interactive/interactive_client_init.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/interactive/interactive_client_init.go b/pkg/interactive/interactive_client_init.go index 157a243d0..dbe329f42 100644 --- a/pkg/interactive/interactive_client_init.go +++ b/pkg/interactive/interactive_client_init.go @@ -3,6 +3,7 @@ package interactive import ( "context" "fmt" + "github.com/turbot/steampipe/pkg/statushooks" "log" "time" @@ -39,6 +40,7 @@ func (c *InteractiveClient) handleInitResult(ctx context.Context, initResult *db } if initResult.HasMessages() { + statushooks.Done(ctx) // clear the prompt // NOTE: this must be done BEFORE setting hidePrompt // otherwise the cursor calculations in go-prompt do not work and multi-line test is not cleared