| Index: ports/vim/background.js
|
| diff --git a/ports/vim/background.js b/ports/vim/background.js
|
| index 63da71637758fb451ac2b15d1951600f6cdb38a3..7bd1df0405fe6168cd9e791e747fb273805864d4 100644
|
| --- a/ports/vim/background.js
|
| +++ b/ports/vim/background.js
|
| @@ -52,10 +52,11 @@ function saveFile(saveFileEntry) {
|
| function launchVim(fileEntry) {
|
| function onWindowCreated(win) {
|
| win.contentWindow.fileEntryToLoad = fileEntry;
|
| - if (fileEntry)
|
| + if (fileEntry) {
|
| console.log('Lauching vim with item: ' + fileEntry);
|
| - else
|
| + } else {
|
| console.log('Lauching vim without items');
|
| + }
|
|
|
| function onWindowClosed() {
|
| console.log('onWindowClosed');
|
| @@ -78,8 +79,9 @@ function launchVim(fileEntry) {
|
|
|
| function onLaunchedListener(launchData) {
|
| var fileEntry;
|
| - if (launchData.items)
|
| + if (launchData.items) {
|
| fileEntry = launchData.items[0].entry;
|
| + }
|
| launchVim(fileEntry);
|
| }
|
|
|
|
|