JuliaLang/julia — pull request #6429 by mbauman (2014-04-05 16:04:41+00:00)
Title: Introduce `cut` abstraction for IOBuffer

Removes all text between from and to, keeping the position stable with the text. Minor behavior change to kill_line -- when killing just a newline, that goes into the buffer.

Takes the abstraction from #6427 that @carlobaldassi found useful.