This command fixes this issue (somewhat): gsettings set org.gnome.gedit.preferences.editor ensure-trailing-newline false
By disabling the automatic addition of a last newline, gedit will show the actual last newline. I would argue that it's rather an issue of 'ensure-trailing-newline' being unintuitive. see: https://bugzilla.gnome.org/show_bug.cgi?id=625955 ** Bug watch added: bugzilla.gnome.org/ #625955 https://bugzilla.gnome.org/show_bug.cgi?id=625955 -- 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: Confirmed 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 : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp