| Summary: | loss of highlighting in snippets | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Martin <hr.keuner> |
| Component: | plugin-snippets | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 20.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Highlighting after deleting lines | ||
Created attachment 136450 [details] Highlighting after deleting lines SUMMARY Highlighting of fields in multiline snippets is not shown when a line is deleted. Also you can not tab through fields if you delete more than 1 line. STEPS TO REPRODUCE 1. Create a multiline snippet i.e. ''' @book{${bibkey}, author = {${author}}, editor = {${editor}}, title = {${title}}, series = {${series}}, number = {${number}}, publisher = {${publisher}}, year = {${year}}, pagetotal = {${pagetotal}}, file = {:${file}:PDF}, url = {${url}}, edition = {${edition}}, abstract = {${abstract}}, groups = {${groups}}, } ${cursor} ''' 2. use snippet, tab to a random line 3. delete one line (using ctrl+d) 4. delete the next line as well (using ctrl+d) OBSERVED RESULT After 3: The fields after the deleted lines lose their highlighting. You can still tab trough the fields. Highlighting above the deleted line is still shown. After 4: You can not tab any further. If you place the cursor in a field you can tab until the place you deleted the lines from. This Problem is not new, but persists as long as I use the snippet plugin (Sorry for not reporting). EXPECTED RESULT after 3: Highlighting of all remaining fields persists. after 4: You can tab through all the fields. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux Thinkpad 5.10.18-1-MANJARO #1 SMP PREEMPT Tue Feb 23 18:07:15 UTC 2021 x86_64 GNU/Linux (available in About System) KDE Plasma Version: 5.21.1 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 Kate Version: 20.12.2 ADDITIONAL INFORMATION