This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 9a1af26614f32c8031f9f14e30983113a184e2f9
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue Sep 19 09:58:08 2023 +0200

    text: Cosmetics
    
    Eliminate mlen.
---
 src/text.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/text.c b/src/text.c
index d1874eff..fbd47de7 100644
--- a/src/text.c
+++ b/src/text.c
@@ -310,13 +310,11 @@ TextstateTextFitMB(TextState * ts, char **ptext, int *pw, int textwidth_limit)
 	nuke_count++;
 	if (nuke_count >= wc_len - 1)
 	  {
-	     int                 mlen;
+	     len_mb = EwcWcsToStr(wc_line, 1, new_line, MB_CUR_MAX);
+	     if (len_mb < 0)
+		len_mb = 1;
 
-	     mlen = EwcWcsToStr(wc_line, 1, new_line, MB_CUR_MAX);
-	     if (mlen < 0)
-		mlen = 1;
-
-	     strcpy(new_line + mlen, "...");
+	     strcpy(new_line + len_mb, "...");
 	     break;
 	  }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to