Commits

ZyX_I  committed ac51f4b

Rename option and do not echo trailing newline

  • Participants
  • Parent commits ce2a209

Comments (0)

Files changed (1)

File autoload/ansi_esc_echo.vim

 "▶1 Get colors
 if has('gui_running')
     let s:pref='gui'
-    let s:colorfile=s:_f.getoption('ColorFile')
-    let s:colorfile=
+    let s:colorfile=s:_f.getoption('color_file')
     if !filereadable(s:colorfile)
         call s:_f.warn('misscol')
     else
 "▶1 echo
 function s:F.echo(lines)
     let prevcolors=[]
+    let i=0
     for text in a:lines.lines
+        if i
+            echon "\n"
+        endif
+        let i+=1
         let prevcol=0
         let colors={}
         let rreverts=reverse(copy(text.reverts))
         if prevcol<len(text.line)
             echon text.line[(prevcol):]
         endif
-        echon "\n"
     endfor
     echohl None
     return get(prevcolors, -1, [{}])[0]