Skip to content

Instantly share code, notes, and snippets.

@sgur
Created January 25, 2017 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgur/93297d47e46665593be79be185ddac1d to your computer and use it in GitHub Desktop.
Save sgur/93297d47e46665593be79be185ddac1d to your computer and use it in GitHub Desktop.
git diff src/screen.c
diff --git a/src/screen.c b/src/screen.c
index 6b4b8279a..4cf6f7824 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4547,7 +4547,11 @@ win_line(
/*
* Found last space before word: check for line break.
*/
- if (wp->w_p_lbr && vim_isbreak(c) && !vim_isbreak(*ptr))
+ if (wp->w_p_lbr
+# ifdef FEAT_MBYTE
+ && !has_mbyte
+# endif
+ && vim_isbreak(c) && !vim_isbreak(*ptr))
{
# ifdef FEAT_MBYTE
int mb_off = has_mbyte ? (*mb_head_off)(line, ptr - 1) : 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment