| Summary: | Inserting multi-lines snippet after tab does not align following lines | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Fernand Veilleux <fernveilleux> |
| Component: | plugin-snippets | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | christoph, ekigwana, ilmari.lauhakangas |
| Priority: | NOR | ||
| Version First Reported In: | 16.04.1 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Screen recording of kate window | ||
Reproduced. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm The bug is partly fixed (using kate version 3.14.13) Under settings->editing->indentation there is a default indentation mode. The indentation mode should follow the language of the file, but if the default is set to a bad mode, the indentation does not work. But when it is set, the snippet is pasted correctly. I use C style as default as most languages mimics the indentation style. Fixed in main. Since when, which commit? What did you do to test? Created attachment 120313 [details]
Screen recording of kate window
kde-frameworks/ktexteditor: commit b2064042daa143ae60d5728d46777511aee74a02
kde-apps/kate: commit b642a531b022f93c1b07880a3a195c2a6dfd7538
Kate Version 18.03.70
Kate Part Version 5.59.0
QT 5.12.3
Note I have adjust indention of code pasted from the clipboard enabled.
The commits you refer to do not change anything related to this issue. So you tested and it's a "works for you", not a fix, right? :) First time trying my hand at this. I was just combing through older bugs to see if they were still present and this one used to irritate me. So Unless I have a specific commit I'll use worksforme from here on out. If you can no longer reproduce an issue with current master, worksforme is the right thing I assume, thanks! |
Inserted tabs/spaces in the beginning of a line before I add a snippet are not replicated on the second and following lines Reproducible: Always Steps to Reproduce: 1.Insert tabs/spaces in a line to let's say column 12 2.Insert a well formated multi-lines snippet similar to this : if (){ do this } Actual Results: if (){ do this } Expected Results: if (){ do this }