Title: Transpose with an empty line crashes bpython · Issue #548 · bpython/bpython · GitHub
Open Graph Title: Transpose with an empty line crashes bpython · Issue #548 · bpython/bpython
X Title: Transpose with an empty line crashes bpython · Issue #548 · bpython/bpython
Description: Minor edge case I think: ⊙ bpython Julian@Macnetic bpython version 0.15.dev155 on top of Python 2.7.10 /usr/local/opt/python/bin/python2.7 >>> Traceback (most recent call last): File "/usr/local/bin/bpython", line 9, in
Open Graph Description: Minor edge case I think: ⊙ bpython Julian@Macnetic bpython version 0.15.dev155 on top of Python 2.7.10 /usr/local/opt/python/bin/python2.7 >>> Traceback (most recent call last): File "/usr/local/bi...
X Description: Minor edge case I think: ⊙ bpython Julian@Macnetic bpython version 0.15.dev155 on top of Python 2.7.10 /usr/local/opt/python/bin/python2.7 >>> Traceback (most recent call last): File "...
Opengraph URL: https://github.com/bpython/bpython/issues/548
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transpose with an empty line crashes bpython","articleBody":"Minor edge case I think:\n\n```\n⊙ bpython Julian@Macnetic\nbpython version 0.15.dev155 on top of Python 2.7.10 /usr/local/opt/python/bin/python2.7\n\u003e\u003e\u003e\nTraceback (most recent call last):\n File \"/usr/local/bin/bpython\", line 9, in \u003cmodule\u003e\n load_entry_point('bpython==0.15.dev155', 'console_scripts', 'bpython')()\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsies.py\", line 88, in main\n interactive=(not exec_args))\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsies.py\", line 189, in mainloop\n process_event(e)\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsies.py\", line 147, in process_event\n repl.process_event(e)\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 524, in process_event\n return self.process_key_event(e)\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 626, in process_key_event\n cut_buffer=self.cut_buffer)\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/manual_readline.py\", line 67, in call\n return func(**args)\n File \"/usr/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/manual_readline.py\", line 286, in transpose_character_before_cursor\n line[cursor_offset - 1] +\nIndexError: string index out of range\n```\n\nAlso, I encountered this because I tried to send SIGINFO to bpython which is bound to `^T` by default, and being overridden here for the readline stuff. Not sure if that's intentional as well, I don't know what OS X uses for readline transpose instead.\n","author":{"url":"https://github.com/Julian","@type":"Person","name":"Julian"},"datePublished":"2015-07-01T14:20:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/548/bpython/issues/548"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:009bd0c0-29e7-ee90-4099-ed38af0bba4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F78:3EEF66:639586:8D042B:6968F8D1 |
| html-safe-nonce | efb0416d5ac96323b8b8dad01f764a59bec126a609756497a0fb88a9b9d4f240 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Rjc4OjNFRUY2Njo2Mzk1ODY6OEQwNDJCOjY5NjhGOEQxIiwidmlzaXRvcl9pZCI6Ijg4OTc1MTgwNjY3ODYxNzEwODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ba8092428e38678656f9e4ad2266e1612a96ce763e60689330cb558cc2feb6c3 |
| hovercard-subject-tag | issue:92397321 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/548/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5584d09658f511aff594b2c4279bac6bfa933862354da2e8dd94788505fb6ce/bpython/bpython/issues/548 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5584d09658f511aff594b2c4279bac6bfa933862354da2e8dd94788505fb6ce/bpython/bpython/issues/548 |
| og:image:alt | Minor edge case I think: ⊙ bpython Julian@Macnetic bpython version 0.15.dev155 on top of Python 2.7.10 /usr/local/opt/python/bin/python2.7 >>> Traceback (most recent call last): File "/usr/local/bi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Julian |
| hostname | github.com |
| expected-hostname | github.com |
| None | b229519d8adb10c7bce106d807003c585a919bd07491d720d8aada92dc43746b |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 176ddd19d172d50da7e20b971f928ffe57138b35 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width