0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.4.562

Problem:    Segfault with wide screen and error in 'rulerformat'. (Ingo Karkat)
Solution:   Check there is enough space. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-01-07 13:31:52 +01:00
parent abe382cd2a
commit 0027c218e9
3 changed files with 6 additions and 1 deletions

View File

@@ -4409,6 +4409,8 @@ get_rel_pos(wp, buf, buflen)
long above; /* number of lines above window */
long below; /* number of lines below window */
if (buflen < 3) /* need at least 3 chars for writing */
return;
above = wp->w_topline - 1;
#ifdef FEAT_DIFF
above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill;