Fix interactive prompt adding extra spaces when showing status messages when fdw is updated. Closes #3173

This commit is contained in:
kai
2023-03-01 13:45:34 +00:00
parent 2dff3d40de
commit fcb87b685c

View File

@@ -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