mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Break out non-autocomplete changes from autocomplete PR (#618)
This improves the ephemeral command runner to allow for honoring of timeouts and proper handling of overriding the current working directory. It also fixes some partially transparent font colors in light mode, making them solid instead. It also updates the InputModel to be auto-observable and utilize some getters to ensure the cmdinput is getting updated whenever necessary state changes take place.
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/wavetermdev/waveterm/waveshell/pkg/wlog"
|
||||
"github.com/wavetermdev/waveterm/wavesrv/pkg/scbase"
|
||||
"github.com/wavetermdev/waveterm/wavesrv/pkg/waveenc"
|
||||
)
|
||||
@@ -110,6 +111,7 @@ func (pipe *BufferedPipe) WriteTo(w io.Writer) (n int64, err error) {
|
||||
|
||||
// Close the pipe. This will cause any blocking WriteTo calls to return.
|
||||
func (pipe *BufferedPipe) Close() error {
|
||||
wlog.Logf("closing buffered pipe %s", pipe.Key)
|
||||
defer pipe.bufferDataCond.Broadcast()
|
||||
pipe.closed.Store(true)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user