diff --git a/pterosaur.js b/pterosaur.js index 0680c5e..a5c3769 100644 --- a/pterosaur.js +++ b/pterosaur.js @@ -241,7 +241,7 @@ io.system("mkfifo /tmp/pterosaur_fifo"); io.system("$(while killall -0 firefox; do sleep 1; done) | cat > /tmp/pterosaur_fifo &"); //TODO: Also an ugly hack -io.system('sh -c \'while [ "$(vim --servername pterosaur --remote-expr 1)" != 1 ] && killall -0 firefox; do vim --servername pterosaur -f +"set autoread" +"set noswapfile" +"set shortmess+=A" /dev/pts/1; done\' &'); +io.system('sh -c \'while [ "$(vim --servername pterosaur --remote-expr 1)" != 1 ] && killall -0 firefox; do vim --servername pterosaur -f +"set autoread" +"set noswapfile" +"set shortmess+=A" /dev/null; done\' &'); //If this doesn't match options["fullvim"] we need to perform cleanup var pterosaurCleanupCheck = false;