diff src/register.c @ 28247:f70015784777 v8.2.4649

patch 8.2.4649: various formatting problems Commit: https://github.com/vim/vim/commit/b4ad3b0deac12674a7773311890b48fd39c6807c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 30 10:57:45 2022 +0100 patch 8.2.4649: various formatting problems Problem: Various formatting problems. Solution: Improve the code formatting.
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Mar 2022 12:00:05 +0200
parents f825792fddb1
children 21e96d9b66c0
line wrap: on
line diff
--- a/src/register.c
+++ b/src/register.c
@@ -2399,8 +2399,8 @@ ex_display(exarg_T *eap)
 			msg_puts_attr("^J", attr);
 			n -= 2;
 		    }
-		    for (p = yb->y_array[j]; *p && (n -= ptr2cells(p)) >= 0;
-									   ++p)
+		    for (p = yb->y_array[j];
+				    *p != NUL && (n -= ptr2cells(p)) >= 0; ++p)
 		    {
 			clen = (*mb_ptr2len)(p);
 			msg_outtrans_len(p, clen);