{"issue":{"state":"open","pull_request":{"diff_url":"https://github.com/ipython/ipython/pull/929.diff","html_url":"https://github.com/ipython/ipython/pull/929","patch_url":"https://github.com/ipython/ipython/pull/929.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/bfe1a4e8db228cb9b7c023c8928ac0e2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bfe1a4e8db228cb9b7c023c8928ac0e2","url":"https://api.github.com/users/juliantaylor","login":"juliantaylor","id":542663},"updated_at":"2011-10-30T22:22:34Z","labels":[],"assignee":null,"comments":2,"closed_at":null,"url":"https://api.github.com/repos/ipython/ipython/issues/929","body":"some readline multiline history fixes and tests\r\n\r\nfixes crash when readline (gh-911)\r\ndo not save input from e.g. raw_input in history\r\ndo not add empty lines to the history.\r\nadd a testcase for _replace_rlhist_multiline\r\nupdate the docstring for the configuration variable","html_url":"https://github.com/ipython/ipython/issues/929","title":"Multiline history","number":929,"id":2049025,"created_at":"2011-10-25T19:47:45Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/7f1ae3f14fd5b87c2c3f7b36014e185c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7f1ae3f14fd5b87c2c3f7b36014e185c","url":"https://api.github.com/users/takluyver","login":"takluyver","id":327925},"updated_at":"2011-10-30T22:22:34Z","url":"https://api.github.com/repos/ipython/ipython/issues/comments/2571939","body":"We've also got a regression from 0.11 where consecutive duplicate entries are stored multiple times, so if you do:\r\n\r\n```\r\nIn [1]: a = 1\r\nIn [2]: b = 2\r\nIn [3]: b = 2\r\nIn [4]:\r\n```\r\n\r\nPressing up-arrow gets you `b = 2` twice before you see `a = 1`. By default, readline seems to condense these consecutive duplicates. I think we need to check `hlen > hlen_before_cell` before we call `add_history`.\r\n\r\nThanks to @antoine-levitt for spotting this in our discussion on #943.","id":2571939,"created_at":"2011-10-30T22:22:34Z"}}