It's not a bug, it's a feature. In the Unix world, a line of text ends with the <newline> character, by definition. A file consisting solely of the four-byte sequence "foo\n" contains only one line. And this is what gedit *correctly* shows.
See "Why should text files end with a newline?": https://stackoverflow.com/questions/729692 The proposed fix makes it very easy to create invalid text files, which is fine if that is really what the use wants, but it is a good thing that it is not the default behavior. The bug status should be changed to "invalid". ** Changed in: gedit (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1621732 Title: gedit doesn't show last newline Status in gedit package in Ubuntu: Invalid Bug description: echo 'foo' | tee -a testfile od -t x1 testfile 0000000 66 6f 6f 0a 0000004 gedit testfile It shows foo as if it doesn't end in a linefeed. In other words I'd expect the last place I could set the cursor as below the line with foo but instead the last place is right after the last o. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: gedit 3.18.3-0ubuntu4 ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16 Uname: Linux 4.4.0-36-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CurrentDesktop: Unity Date: Fri Sep 9 00:39:20 2016 InstallationDate: Installed on 2013-10-23 (1051 days ago) InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1) SourcePackage: gedit UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1621732/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

