| Summary: | Kate fails to indent block of text multiple times at once in vi mode | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Nicolas F. <kdebugs> |
| Component: | Vi Input Mode | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | ilmari.lauhakangas, jenny007jordan, kde.org |
| Priority: | NOR | ||
| Version First Reported In: | 16.04.1 | ||
| Target Milestone: | --- | ||
| Platform: | RedHat Enterprise Linux | ||
| OS: | Linux | ||
| URL: | http://fratti.ch/bugdemos/kate/indent_crash.mkv | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nicolas F.
2015-07-27 14:07:26 UTC
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 :-) |