slap-editor / slap

Sublime-like terminal-based text editor
MIT License
6.14k stars 217 forks source link

Feature: CLI to line number (broken in slap@0.1.60) #353

Open fth86 opened 8 years ago

fth86 commented 8 years ago

Opening a file via slap file:line:column doesnt work in the current build (slap@0.1.60).

strace reports an error in .npm-packages/lib/node_modules/slap/lib/ui/Slap.js:67:14:

if (fs.lstatSync(filePath).isDirectory()) throw _.merge(new Error('EISDIR: illegal operation on a directory, read'), {cause: {code: 'EISDIR'}});

Commenting the line out makes it work, but dunno about unintended consequences of removing that check.