I noticed a bug this morning in nano that caused it to segfault if the linter put the cursor out of bounds and the user began typing outside of the boundaries of the current document, as can very easily happen if using jshint and indenting with tabs. Attached, I have packed a patch to fix this bug.