Summary: | Auto-completing a indented \begin{env} with trailing text does not work as expected | ||
---|---|---|---|
Product: | [Applications] kile | Reporter: | Narthana Epa <narthana.epa> |
Component: | editor | Assignee: | Michel Ludwig <michel.ludwig> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kishore96 |
Priority: | NOR | ||
Version: | 2.1.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/office/kile/-/commit/7e142b1bec7de8a429ef401cc551797b2fbe61df | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Partial fix for the tabbed indetation. |
Description
Narthana Epa
2013-07-21 14:41:41 UTC
Also present in 2.9.60. It actually seems to only occur when tabs are used as indentation characters. Also I erroneously stated that the actually result when there is no indentation (or only spaces are used for indentation) is \begin{env} \end{env}Stuff that should be in the environment when it is actually \begin{env} \end{env} Stuff that should be in the environment Similarly the actual result is \begin{env}Stuff that s \end{env} hould be in the environment Created attachment 84471 [details]
Partial fix for the tabbed indetation.
This seems to fix the case of tabbed indentation causing the the auto-completion of:
\begin{env}|asdfsadf
to
\begin{env}|asd
fsadf
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand. Thank you for helping us make KDE software even better for everyone! Still reproducible with kile 2.9.93 Operating System: Arch Linux KDE Plasma Version: 5.25.90 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 5.15.68-1-lts (64-bit) Graphics Platform: X11 Git commit 7e142b1bec7de8a429ef401cc551797b2fbe61df by Michel Ludwig, on behalf of Kishore Gopalakrishnan. Committed on 01/07/2023 at 06:31. Pushed by mludwig into branch 'master'. Environment completion: don't use virtual cursor position What we actually need here is the real cursor position (where tab is counted as one character) rather than the virtual cursor position (where tab can count as multiple characters depending on the user's config). This commit makes sure that \end{env} is inserted in the right place even when the user uses tabs for indentation. M +1 -1 src/editorextension.cpp https://invent.kde.org/office/kile/-/commit/7e142b1bec7de8a429ef401cc551797b2fbe61df |