mirror of
https://github.com/golang/term.git
synced 2026-02-08 19:56:05 +03:00
missed a spot
This commit is contained in:
@@ -498,7 +498,7 @@ func (t *Terminal) historyAdd(entry string) {
|
||||
// handleKey processes the given key and, optionally, returns a line of text
|
||||
// that the user has entered.
|
||||
func (t *Terminal) handleKey(key rune) (line string, ok bool) {
|
||||
if t.pasteActive && key != keyEnter {
|
||||
if t.pasteActive && key != keyEnter && key != keyLF {
|
||||
t.addKeyToLine(key)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user