patch 8.2.0943: displaying ^M or ^J depends on current buffer

Problem:    Displaying ^M or ^J depends on current buffer.
Solution:   Pass the displayed buffer to transchar(). (closes #6225)
diff --git a/src/gui_beval.c b/src/gui_beval.c
index d3def17..57122ff 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -840,7 +840,7 @@
 		    }
 		    else
 		    {
-			transchar_nonprint(pdest, *p);	// ^X
+			transchar_nonprint(curbuf, pdest, *p);	// ^X
 			outlen = 2;
 		    }
 		    if (pixel != INVALCOLOR)