If in Vi mode, a visual selection of multiple lines is indented multiple times at once (i.e. :>>>), Kate crashes. Reproducible: Always Steps to Reproduce: 1. Activate vi input mode, write some text 2. Hit : followed by more than one > 3. Hit enter
Could you give more detailed instructions as I am not at all familiar with vi inputting, but would like to try and reproduce? I'm asking, because I only managed to write :>>> in pure text after bashing on some keys for a while..
The behaviour changed in recent versions, apparently. Instead of crashing, it now claims multiple indents are an invalid command. 1. i activates insert mode. hit i, write some text, multiple lines. 2. Then hit escape to leave insert mode. 3. Enter visual line selection mode by hitting Shift+V 4. Use the cursor or vi movement keys (h, j, k, l) to select multiple lines 5. Hit : 6. Hit > twice 7. Hit Enter Note how it says unrecognised command now. In earlier versions, it would crash. It can be worked around by instead of doing steps 5 to 7, simply typing the number of places to indent and >, e.g. "2>"
Thanks, now I reproduce. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm
Kate 21.08.2, I can confirm that it doesn't crash. I can also confirm that the steps 1-7 in https://bugs.kde.org/show_bug.cgi?id=350661#c2 yield in '>>" unknown command. Indenting one level using a single > in step 6 works. The proposed workaround also works. Not sure if any of the developers has the time and enthusiasm to look into fixing this if there are workarounds available. We'll see :-)