patch 8.2.0293: various Ex commands not sufficiently tested

Problem:    Various Ex commands not sufficiently tested.
Solution:   Add more test cases. (Yegappan Lakshmanan, closes #5673)
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim
index 8ce6853..7804ca4 100644
--- a/src/testdir/test_global.vim
+++ b/src/testdir/test_global.vim
@@ -55,4 +55,16 @@
   close!
 endfunc
 
+" Test for global command with newline character
+func Test_global_newline()
+  new
+  call setline(1, ['foo'])
+  exe "g/foo/s/f/h/\<NL>s/o$/w/"
+  call assert_equal('how', getline(1))
+  call setline(1, ["foo\<NL>bar"])
+  exe "g/foo/s/foo\\\<NL>bar/xyz/"
+  call assert_equal('xyz', getline(1))
+  close!
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab