pp_formline: keep linemark consistent
authorDavid Mitchell <davem@iabyn.com>
Sun, 29 May 2011 16:13:07 +0000 (17:13 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 29 May 2011 19:21:54 +0000 (20:21 +0100)
commitf5ada144f34d75c136b6780e10ca13d18d44c557
treec325816b8dfa40cac2dc7eb7aab9f27db841900f
parent8aa7beb669fc0c538f84c04650555a03349429da
pp_formline: keep linemark consistent

linemark is a pointer to the current start of the line. This allows
things like ~ to delete back to the start of the line.

Convert it into an offset, so that it isn't invalidated if PL_formtarget
is reallocated. Also recalculate it if PL_formtarget is upgraded to utf8.
pp_ctl.c
t/op/write.t