runtime/termdebug.vim: handle "\n" as linebreaks #10037

Note: use "set print pretty" in gdb
Fixes #10020
This commit is contained in:
Kwon-Young Choi 2019-05-20 12:47:13 +02:00 committed by Justin M. Keyes
parent 60710dee82
commit b9ba1295b4

View File

@ -564,7 +564,8 @@ func s:HandleEvaluate(msg)
else
let s:evalFromBalloonExprResult .= ' = ' . value
endif
call s:OpenHoverPreview([s:evalFromBalloonExprResult], v:null)
let s:evalFromBalloonExprResult = split(s:evalFromBalloonExprResult, '\\n')
call s:OpenHoverPreview(s:evalFromBalloonExprResult, v:null)
else
echomsg '"' . s:evalexpr . '": ' . value
endif