summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-10 14:16:49 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-10 14:16:49 +0200
commit32ee627750e8b7b3fa6516b893e72f6e6af54710 (patch)
treedfa25269bbbaaf317765ff0ef0b059362c33f920 /src/ex_cmds.c
parent0e390f40e944036fb558a63b91238cfda128d95f (diff)
downloadvim-git-32ee627750e8b7b3fa6516b893e72f6e6af54710.tar.gz
patch 8.2.0943: displaying ^M or ^J depends on current bufferv8.2.0943
Problem: Displaying ^M or ^J depends on current buffer. Solution: Pass the displayed buffer to transchar(). (closes #6225)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index ac55c268a..2280fcfa0 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -69,7 +69,7 @@ do_ascii(exarg_T *eap UNUSED)
#endif
))
{
- transchar_nonprint(buf3, c);
+ transchar_nonprint(curbuf, buf3, c);
vim_snprintf(buf1, sizeof(buf1), " <%s>", (char *)buf3);
}
else
@@ -2556,7 +2556,7 @@ do_ecmd(
}
/*
- * if the file was changed we may not be allowed to abandon it
+ * If the file was changed we may not be allowed to abandon it:
* - if we are going to re-edit the same file
* - or if we are the only window on this file and if ECMD_HIDE is FALSE
*/