slap-editor / slap

Sublime-like terminal-based text editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fth86 opened this issue · comments

commented

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.