summaryrefslogtreecommitdiff
path: root/runtime/pack
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-27 14:53:30 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-27 14:53:30 +0100
commit22f1d0e35eb0e503c2dc7813a973c7e6ca1b7dde (patch)
treeb02755d39b5dbe62e0a3a2ae84bc024d17664955 /runtime/pack
parentd4fc577e60d325777d38c00bd78fb9a32c7b1dfa (diff)
downloadvim-git-22f1d0e35eb0e503c2dc7813a973c7e6ca1b7dde.tar.gz
Updated runtime files.
Add Serbian translations and spell checking.
Diffstat (limited to 'runtime/pack')
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim13
1 files changed, 8 insertions, 5 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 0e4e70931..84ac0de42 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -325,9 +325,11 @@ func s:Evaluate(range, arg)
else
let expr = expand('<cexpr>')
endif
+ let s:ignoreEvalError = 0
call s:SendEval(expr)
endfunc
+let s:ignoreEvalError = 0
let s:evalFromBalloonExpr = 0
" Handle the result of data-evaluate-expression
@@ -347,6 +349,7 @@ func s:HandleEvaluate(msg)
if s:evalexpr[0] != '*' && value =~ '^0x' && value != '0x0' && value !~ '"$'
" Looks like a pointer, also display what it points to.
+ let s:ignoreEvalError = 1
call s:SendEval('*' . s:evalexpr)
else
let s:evalFromBalloonExpr = 0
@@ -359,19 +362,19 @@ func TermDebugBalloonExpr()
if v:beval_winid != s:startwin
return
endif
- call s:SendEval(v:beval_text)
let s:evalFromBalloonExpr = 1
let s:evalFromBalloonExprResult = ''
+ let s:ignoreEvalError = 1
+ call s:SendEval(v:beval_text)
return ''
endfunc
" Handle an error.
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,'
+ if s:ignoreEvalError
" Result of s:SendEval() failed, ignore.
+ let s:ignoreEvalError = 0
+ let s:evalFromBalloonExpr = 0
return
endif
echoerr substitute(a:msg, '.*msg="\(.*\)"', '\1', '')