vicoapp / vico

Mac Programmers Text Editor
http://www.vicoapp.com/
658 stars 89 forks source link

problem with the last line break #16

Closed ghost closed 12 years ago

ghost commented 12 years ago

Vico does not handle the last line break properly causing every file to have a new line at the end. image

farmdawgnation commented 12 years ago

I think it's SOP for all Linux files to end with a newline. At least, close enough to SOP for git to yell at you in your diff if you don't. Haha. Which is to say, I'm not entirely sure that's a not a feature.

martinh commented 12 years ago

This is intentional. Vico forces a newline at end of file, unless the file is empty (0 byte). This is consistent with nvi and vim.