Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapping destroys 'target' pane #3

Open
scorbeil opened this issue Jul 2, 2015 · 1 comment
Open

Swapping destroys 'target' pane #3

scorbeil opened this issue Jul 2, 2015 · 1 comment

Comments

@scorbeil
Copy link

scorbeil commented Jul 2, 2015

When I activate one of swap-panes' commands, the 'target' pane is destroyed. So, for example, if the left pane is active, and I hit alt-ctrl-shift-right, the right pane simply disappears, leaving only the left.

Less surprising, if I perform the reverse operation, swap-panes throws an Uncaught TypeError: Cannot read property '0' of undefined with the following stack trace:

TypeError: Cannot read property '0' of undefined
  at Object.module.exports.swap (C:\Users\scorbeil\.atom\packages\swap-panes\lib\swap-panes.coffee:30:6)
  at Object.module.exports.swapRight (C:\Users\scorbeil\.atom\packages\swap-panes\lib\swap-panes.coffee:10:18)
  at atom-workspace.<anonymous> (C:\Users\scorbeil\.atom\packages\swap-panes\lib\swap-panes.coffee:3:70)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\src\command-registry.js:241:29)
  at C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\src\command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:180:20)
@danhper
Copy link

danhper commented Jun 17, 2016

I am seeing the same behavior here.
I am using atom 1.7.4.
Let me know if you need more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants