Last line skipped when trying to indent multiple lines

Bug #1460311 reported by Kristian Mörling
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leafpad (Ubuntu)
Invalid
High
Unassigned

Bug Description

If I for example add the following lines to leafpad

<BOF>abc
def
ghi<EOF>

(without <...>) and press Ctrl + a followed by the TAB-key, every line except for the last line will be indented one step. After looking into the source code, my guess is that this problem is the consequence of an OBOE in the function indent.c:indent_multi_line_indent(GtkTextBuffer *buffer).

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: leafpad 0.8.18.1-4
ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
Uname: Linux 3.19.0-18-generic i686
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: i386
CurrentDesktop: LXDE
Date: Sat May 30 16:51:04 2015
InstallationDate: Installed on 2015-05-05 (24 days ago)
InstallationMedia: Lubuntu 15.04 "Vivid Vervet" - Release i386 (20150422)
SourcePackage: leafpad
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Kristian Mörling (testingit) wrote :
Revision history for this message
Kristian Mörling (testingit) wrote :

There are other bugs related to this indentation bug. If we try to "unindent" a marked region of lines (with SHIFT-TAB), the last line will be ignored. Or if we try to undo (with CTRL-z) a previous indentation/"unindentation" on a marked region of lines, the last line will be removed.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I can confirm this issue in leafpad 0.8.18.1-4 on Ubuntu Wily. The last line is indeed ignored for some odd reason.

Changed in leafpad (Ubuntu):
status: New → Confirmed
tags: added: wily
Changed in leafpad (Ubuntu):
importance: Undecided → High
Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for reporting this bug to Ubuntu.

Ubuntu 15.04 (vivid) reached end-of-life on February 4, 2016.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in leafpad (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.