diff --git a/pkg/cli/editor.go b/pkg/cli/editor.go index f6805ac..2d17d6d 100644 --- a/pkg/cli/editor.go +++ b/pkg/cli/editor.go @@ -38,7 +38,9 @@ func (ed *Editor) EditRequest(keyStream <-chan keyboard.KeyEvent, initBuffer str if ed.pos < len(ed.buffer) { fmt.Print(string(ed.buffer[ed.pos:])) } + fmt.Print("\n") + stringBuffer := string(ed.buffer) requet := strings.TrimSpace(stringBuffer) @@ -187,6 +189,7 @@ func (ed *Editor) InsertSymbol(symbol rune) { ed.buffer = buffer ed.pos++ + fmt.Print(string(symbol) + endOfStr) }