See log on https://gist.github.com/1302023
@juliantaylor: I think this is from your work enabling multiline history. Do you have time to have a look at it?
there are a couple if self.has_readlines missing :/
alternative would be to move all the multiline history stuff into a the store_rl_history function with before_cell length a class member
Is probably cleaner than sprinkling the code with conditions
move hlen_before_cell into _replace_rlhist_multiline
make hlen_before_cell a class member and move all multiline
history functionality into _replace_rlhist_multiline.