mirror of
https://github.com/turbot/steampipe.git
synced 2026-05-05 09:01:26 -04:00
Fix interactive prompt adding extra spaces when showing status messages when fdw is updated. Closes #3173
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user