diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-19 19:56:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-19 19:56:27 +0100 |
commit | 246fe03d154c09070d5b7365b7f61716c4e0ddd4 (patch) | |
tree | 1d0ad5929d17f1af24ac22817bd9fe6c0d5d84f2 /runtime/pack | |
parent | e518226713784e628ae7ee077f1b66cb12b9ffd9 (diff) |
patch 8.0.1318: terminal balloon only shows one linev8.0.1318
Problem: Terminal balloon only shows one line.
Solution: Split into several lines in a clever way. Add balloon_split().
Make balloon_show() accept a list in the terminal.
Diffstat (limited to 'runtime/pack')
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 1c3c9df9a7..aca56d2a7b 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -127,9 +127,11 @@ func s:StartDebug(cmd) call win_gotoid(s:gdbwin) " Enable showing a balloon with eval info - if has("balloon_eval") - set ballooneval + if has("balloon_eval") || has("balloon_eval_term") set balloonexpr=TermDebugBalloonExpr() + if has("balloon_eval") + set ballooneval + endif if has("balloon_eval_term") set balloonevalterm endif @@ -158,9 +160,11 @@ func s:EndDebug(job, status) let &columns = s:save_columns endif - if has("balloon_eval") - set noballooneval + if has("balloon_eval") || has("balloon_eval_term") set balloonexpr= + if has("balloon_eval") + set noballooneval + endif if has("balloon_eval_term") set noballoonevalterm endif @@ -366,6 +370,7 @@ func s:HandleError(msg) if a:msg =~ 'No symbol .* in current context' \ || a:msg =~ 'Cannot access memory at address ' \ || a:msg =~ 'Attempt to use a type name as an expression' + \ || a:msg =~ 'A syntax error in expression,' " Result of s:SendEval() failed, ignore. return endif |