Remove deprecated functions and add comments
This commit is contained in:
parent
58b39dbb6c
commit
0f9b504036
@ -95,6 +95,6 @@ func (ip *InputProcessor) Run(ctx context.Context) (err error) {
|
||||
}
|
||||
continue
|
||||
}
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
time.Sleep(10 * time.Millisecond) // FIXME: I wanna remove this
|
||||
}
|
||||
}
|
||||
|
@ -15,9 +15,8 @@ import (
|
||||
// Output is converted from VT100 escape sequences by mattn/go-colorable.
|
||||
type WindowsWriter struct {
|
||||
VT100Writer
|
||||
tty *tty.TTY
|
||||
writer io.Writer
|
||||
sigwinch chan WinSize
|
||||
tty *tty.TTY
|
||||
writer io.Writer
|
||||
}
|
||||
|
||||
// Flush to flush buffer
|
||||
|
@ -261,6 +261,8 @@ func (p *Prompt) Input() string {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case <-sigquit:
|
||||
close(sigquit)
|
||||
signal.Stop(sigquit)
|
||||
cancel()
|
||||
}
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ type Renderer struct {
|
||||
Render chan RenderRequest
|
||||
}
|
||||
|
||||
// Run to start worker goroutine for rendering.
|
||||
func (r *Renderer) Run(ctx context.Context) {
|
||||
r.SetUp()
|
||||
defer r.TearDown()
|
||||
@ -116,6 +117,7 @@ func (r *Renderer) Run(ctx context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// RenderRequest is used when requesting render
|
||||
type RenderRequest struct {
|
||||
buffer *Buffer
|
||||
completion *CompletionManager
|
||||
|
Loading…
Reference in New Issue
Block a user