Last line skipped when trying to indent multiple lines
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.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: leafpad 0.8.18.1-4
ProcVersionSign
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)
Changed in leafpad (Ubuntu): | |
importance: | Undecided → High |
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.