From 8007b9b0a3514af939097f6da95622e7f6005dfe Mon Sep 17 00:00:00 2001 From: shaohk Date: Thu, 23 Jun 2022 21:38:49 +0800 Subject: [PATCH] fix(autocomplete newline): autocomplete newline --- complete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete.go b/complete.go index c08c994..cd9dde7 100644 --- a/complete.go +++ b/complete.go @@ -209,7 +209,7 @@ func (o *opCompleter) CompleteRefresh() { o.candidateColNum = colNum buf := bufio.NewWriter(o.w) - buf.Write(bytes.Repeat([]byte("\n"), lineCnt)) + buf.Write(bytes.Repeat([]byte("\n\r"), lineCnt)) colIdx := 0 lines := 1