It will crash.
But so will every other tool, because it is things like a C++ header file with 128MB of PNG data hardcoded as an array.
Editors don’t even open those files.
Perhaps it could just check the length of files and not crash?!? Don’t you think that’s sensible?
> Editors don’t even open those files.
vi opens multi-GB files just fine.
And for multi-TB files, "less -n" works.
You need to broaden your horizons about editors. Not all of then are javascript-based slopfests
Fair enough.
But then I would rephrase that because it's confusing, and not doing justice to your tool.