aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-22 07:55:08 +0800
committerGitHub <noreply@github.com>2022-11-22 07:55:08 +0800
commitedd0de9821ba916e52fed37967d557c82c9fc0e6 (patch)
tree4625bc963ec1a910304039bd6573e0b10935cc5e /src/nvim/debugger.c
parent904d0056d520ef01e2873bbaa91a4693e8dfd226 (diff)
parent9b768752353d3cf99c6cb02e6c1f9d70c029ecb6 (diff)
downloadrneovim-edd0de9821ba916e52fed37967d557c82c9fc0e6.tar.gz
rneovim-edd0de9821ba916e52fed37967d557c82c9fc0e6.tar.bz2
rneovim-edd0de9821ba916e52fed37967d557c82c9fc0e6.zip
Merge pull request #21149 from zeertzjq/vim-9.0.0916
vim-patch:8.2.{2435,2479},9.0.0916
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r--src/nvim/debugger.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 71959cfa29..6f7d6a27ef 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -808,26 +808,26 @@ static linenr_T debuggy_find(bool file, char_u *fname, linenr_T after, garray_T
typval_T *const tv = eval_expr_no_emsg(bp);
if (tv != NULL) {
if (bp->dbg_val == NULL) {
- debug_oldval = typval_tostring(NULL);
+ debug_oldval = typval_tostring(NULL, true);
bp->dbg_val = tv;
- debug_newval = typval_tostring(bp->dbg_val);
+ debug_newval = typval_tostring(bp->dbg_val, true);
line = true;
} else {
if (typval_compare(tv, bp->dbg_val, EXPR_IS, false) == OK
&& tv->vval.v_number == false) {
line = true;
- debug_oldval = typval_tostring(bp->dbg_val);
+ debug_oldval = typval_tostring(bp->dbg_val, true);
// Need to evaluate again, typval_compare() overwrites "tv".
typval_T *const v = eval_expr_no_emsg(bp);
- debug_newval = typval_tostring(v);
+ debug_newval = typval_tostring(v, true);
tv_free(bp->dbg_val);
bp->dbg_val = v;
}
tv_free(tv);
}
} else if (bp->dbg_val != NULL) {
- debug_oldval = typval_tostring(bp->dbg_val);
- debug_newval = typval_tostring(NULL);
+ debug_oldval = typval_tostring(bp->dbg_val, true);
+ debug_newval = typval_tostring(NULL, true);
tv_free(bp->dbg_val);
bp->dbg_val = NULL;
line = true;