santip / move-panes

Atom package for moving tabs within panes
https://atom.io/packages/move-panes
MIT License
11 stars 4 forks source link

Throws error if is there no pane in the direction one wants to move the buffer. #1

Open despairblue opened 9 years ago

despairblue commented 9 years ago

The most convenient solution would be to simply create panes ad hoc.

Uncaught TypeError: Cannot read property '0' of undefined move-panes.coffee:31
module.exports.move move-panes.coffee:31
module.exports.moveRight move-panes.coffee:11
(anonymous function) move-panes.coffee:4
jQuery.event.dispatch /usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4361
module.exports.KeymapManager.dispatchCommandEvent /usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:400
module.exports.KeymapManager.handleKeyboardEvent /usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:181
(anonymous function) /usr/share/atom/resources/app/src/window-event-handler.js:90
jQuery.event.dispatch /usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360
dcalhoun commented 9 years ago

I've seen this error as well. Having the plugin create a pane for you seems like the best solution to me.