fix splitting of multiline strings in history