- f->buffer = FB_MULTI(f)->cur->fb->buffer;
- f->bptr = FB_MULTI(f)->cur->fb->bptr;
- f->bstop = FB_MULTI(f)->cur->fb->bstop;
- f->bufend = FB_MULTI(f)->cur->fb->bufend;
- f->pos = FB_MULTI(f)->cur->begin + FB_MULTI(f)->cur->fb->pos - FB_MULTI(f)->cur->offset;
+ struct subbuf *sb = FB_MULTI(f)->cur;
+ struct fastbuf *ff = sb->fb;
+
+ f->buffer = ff->buffer;
+ f->bptr = ff->bptr;
+ f->bstop = ff->bstop;
+ f->bufend = ff->bufend;
+ f->pos = sb->begin + (ff->pos - sb->offset);