Created
January 25, 2017 08:46
-
-
Save sgur/93297d47e46665593be79be185ddac1d to your computer and use it in GitHub Desktop.
git diff src/screen.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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