Indent Keyboard Shortcut Doesn't Work

Bug #1971761 reported by linux4me2
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bluefish (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm using:
Ubuntu 22.04
Bluefish:
  Installed: 2.2.12-1.1build1
  Candidate: 2.2.12-1.1build1
  Version table:
 *** 2.2.12-1.1build1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

In Bluefish, if I select a block of code I want to indent using the keyboard shortcut Ctrl+., Bluefish types an "e" at the end of the selection, but doesn't indent the selected code.

For example, if I select the following code block and enter the keyboard shortcut (Ctrl+.) to indent it:

if ($onlyindentkeyboardshortcutworked == true) {
    echo "I would be happy.";
} else {
    echo "I am not happy.";
}

I get this:

if ($onlyindentkeyboardshortcutworked == true) {
    echo "I would be happy.";
} else {
    echo "I am not happy.";
}e

But I should get this:

    if ($onlyindentkeyboardshortcutworked == true) {
        echo "I would be happy.";
    } else {
        echo "I am not happy.";
    }

If I use Tools > Format > Indent, or the Indent Toolbar Button, indent works as expected. (The latter is a good workaround.)

I removed my .bluefish config file and repeated the test with a clean one, but it made no difference.

Revision history for this message
linux4me2 (linux4me2) wrote :

Although this bug appears in Bluefish, it looks like it might be due to another package.

The version of Bluefish I have installed hasn't changed since I filed this bug report, yet some time back the problem went away.

A few days ago, after running upgrading some packages, it returned.

I have another machine which had not been upgraded, so I decided to run a little test on it.

The indent keyboard shortcut was working fine in it, so I decided to go through the upgradeable packages one by one (or in groups if they were for the same program), then open Bluefish and see if the indent keyboard shortcut bug returned. I went through each package/package group, but after upgrading them all the indent keyboard shortcut still worked, so I restarted Ubuntu, restarted Bluefish, and the keyboard shortcut was back, so I should have restarted Ubuntu each time I upgraded a package/package group before testing Bluefish. Rookie mistake.

Still, someone wiser than I may be able to tell which package might be responsible. This is the list of what was upgraded that caused the bug to rear its ugly head again:

python3-problem-report:all 2.20.11-0ubuntu82.3 2.20.11-0ubuntu82.4
thunderbird-locale-en:amd64 1:102.9.0+build1-0ubuntu0.22.04.1 1:102.10.0+build2-0ubuntu0.22.04.1
thunderbird:amd64 1:102.9.0+build1-0ubuntu0.22.04.1 1:102.10.0+build2-0ubuntu0.22.04.1
thunderbird-gnome-support:amd64 1:102.9.0+build1-0ubuntu0.22.04.1 1:102.10.0+build2-0ubuntu0.22.04.1
ghostscript-x:amd64 9.55.0~dfsg1-0ubuntu5.1 9.55.0~dfsg1-0ubuntu5.2
ghostscript:amd64 9.55.0~dfsg1-0ubuntu5.1 9.55.0~dfsg1-0ubuntu5.2
libgs9:amd64 9.55.0~dfsg1-0ubuntu5.1 9.55.0~dfsg1-0ubuntu5.2
libgs9-common:all 9.55.0~dfsg1-0ubuntu5.1 9.55.0~dfsg1-0ubuntu5.2
xxd:amd64 2:8.2.3995-1ubuntu2.5 2:8.2.3995-1ubuntu2.7
python3-apport:all 2.20.11-0ubuntu82.3 2.20.11-0ubuntu82.4
apport-gtk:all 2.20.11-0ubuntu82.3 2.20.11-0ubuntu82.4
tzdata:all 2022g-0ubuntu0.22.04.1 2023c-0ubuntu0.22.04.0
vim-tiny:amd64 2:8.2.3995-1ubuntu2.5 2:8.2.3995-1ubuntu2.7
vim-common:all 2:8.2.3995-1ubuntu2.5 2:8.2.3995-1ubuntu2.7
thunderbird-locale-en-us:all 1:102.9.0+build1-0ubuntu0.22.04.1 1:102.10.0+build2-0ubuntu0.22.04.1
libxml2:amd64 2.9.13+dfsg-1ubuntu0.2 2.9.13+dfsg-1ubuntu0.3
linux-generic-hwe-22.04:amd64 5.19.0.38.39~22.04.12 5.19.0.40.41~22.04.13
linux-image-generic-hwe-22.04:amd64 5.19.0.38.39~22.04.12 5.19.0.40.41~22.04.13
linux-headers-generic-hwe-22.04:amd64 5.19.0.38.39~22.04.12 5.19.0.40.41~22.04.13
dnsmasq-base:amd64 2.86-1.1ubuntu0.2 2.86-1.1ubuntu0.3
apport:all 2.20.11-0ubuntu82.3 2.20.11-0ubuntu82.4
libapt-pkg6.0:amd64 2.4.8 2.4.9
apt:amd64 2.4.8 2.4.9
apt-utils:amd64 2.4.8 2.4.9
libldap-2.5-0:amd64 2.5.13+dfsg-0ubuntu0.22.04.1 2.5.14+dfsg-0ubuntu0.22.04.2
libldap-common:all 2.5.13+dfsg-0ubuntu0.22.04.1 2.5.14+dfsg-0ubuntu0.22.04.2
im-config:all 0.50-2 0.50-2ubuntu22.04.1
ubuntu-advantage-tools:amd64 27.13.6~22.04.1 27.14.4~22.04
xserver-common:all 2:21.1.3-2ubuntu2.9 2:21.1.4-2ubuntu1.7~22.04.1
xserver-xephyr:amd64 2:21.1.3-2ubuntu2.9 2:21.1.4-2ubuntu1.7~22.04.1
xserver-xorg-legacy:amd64 2:21.1.3-2ubuntu2.9 2:21.1.4-2ubuntu1.7~22.04.1
xserver-xorg-core:amd64 2:21.1.3-2ubuntu2.9 2:21.1.4-2ubuntu1.7~22.04.1

Revision history for this message
linux4me2 (linux4me2) wrote :

Just out of curiosity, I uninstalled the apt version of Bluefish and installed the Flatpak version, which is also version 2.2.12. I got the same indent keyboard shortcut error in the Flatpak version.

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.