Created
August 1, 2018 03:30
-
-
Save BlitzKraft/4620ae7514c8a3164d934b7f4b5a0c08 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/globals.h b/src/globals.h | |
index 9cf8455..5b06f86 100644 | |
--- a/src/globals.h | |
+++ b/src/globals.h | |
@@ -36,8 +36,7 @@ EXTERN long Columns INIT(= 80); /* nr of columns in the screen */ | |
* "LineOffset[n]" is the offset from ScreenLines[] for the start of line 'n'. | |
* The same value is used for ScreenLinesUC[] and ScreenAttrs[]. | |
* | |
- * Note: before the screen is initialized and when out of memory these can be | |
- * NULL. | |
+ * Note: before the screen is initialized and when out of memory these can be * NULL. | |
*/ | |
EXTERN schar_T *ScreenLines INIT(= NULL); | |
EXTERN sattr_T *ScreenAttrs INIT(= NULL); | |
@@ -1178,6 +1177,7 @@ EXTERN int fill_stlnc INIT(= ' '); | |
EXTERN int fill_vert INIT(= ' '); | |
EXTERN int fill_fold INIT(= '-'); | |
EXTERN int fill_diff INIT(= '-'); | |
+EXTERN int fill_eob INIT(='~'); | |
#ifdef FEAT_FOLDING | |
EXTERN int disable_fold_update INIT(= 0); | |
diff --git a/src/screen.c b/src/screen.c | |
index cab5731..fe1aaac 100644 | |
--- a/src/screen.c | |
+++ b/src/screen.c | |
@@ -2314,7 +2314,7 @@ win_update(win_T *wp) | |
/* make sure the rest of the screen is blank */ | |
/* put '~'s on rows that aren't part of the file. */ | |
- win_draw_end(wp, '~', ' ', row, wp->w_height, HLF_EOB); | |
+ win_draw_end(wp, fill_eob, ' ', row, wp->w_height, HLF_EOB); | |
} | |
#ifdef SYN_TIME_LIMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Patch to compile vim with an option to change the end of buffer character, which is tilde (~). Tried to make it a configurable option, but that didn't work.