diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-31 21:27:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-31 21:27:30 +0200 |
commit | 20a825ae0f90099249924740a5113e6ed413bc66 (patch) | |
tree | 701bee23df4392b438c677a8b28cf76b0240f8c7 /src/memline.c | |
parent | a3ff49fdccd518c91c9445ab3e82394b6812bf4a (diff) | |
download | vim-git-20a825ae0f90099249924740a5113e6ed413bc66.tar.gz |
Add test for gettabvar() and settabvar().
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c index b38a46de7..6f0143cc3 100644 --- a/src/memline.c +++ b/src/memline.c @@ -87,7 +87,7 @@ struct pointer_entry struct pointer_block { short_u pb_id; /* ID for pointer block: PTR_ID */ - short_u pb_count; /* number of pointer in this block */ + short_u pb_count; /* number of pointers in this block */ short_u pb_count_max; /* maximum value for pb_count */ PTR_EN pb_pointer[1]; /* list of pointers to blocks (actually longer) * followed by empty space until end of page */ @@ -3270,7 +3270,8 @@ ml_new_ptr(mfp) pp = (PTR_BL *)(hp->bh_data); pp->pb_id = PTR_ID; pp->pb_count = 0; - pp->pb_count_max = (short_u)((mfp->mf_page_size - sizeof(PTR_BL)) / sizeof(PTR_EN) + 1); + pp->pb_count_max = (short_u)((mfp->mf_page_size - sizeof(PTR_BL)) + / sizeof(PTR_EN) + 1); return hp; } |