Summary: | Incorrect indentation after beginning of line when using soft-tabs | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Michael <zrax0111> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | simonandric5 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/ktexteditor/204fed7b8f5aaaa8b8d4516664b8720f6c2b8315 | Version Fixed In: |
Description
Michael
2014-10-21 21:08:44 UTC
Git commit 204fed7b8f5aaaa8b8d4516664b8720f6c2b8315 by Christoph Cullmann. Committed on 18/11/2014 at 18:54. Pushed by cullmann into branch 'master'. Fix bug #340212: incorrect soft-tabs alignment after beginning-of-line Fix for incorrect soft-tabs alignment after beginning-of-line, by taking the current cursor position into account when expanding tabs to spaces. This also now uses the indentation width rather than the tab width, as I see "Tab Width" as being the actual width of the \t character, and "Indentation width" as being the next alignment position for virtual indentation. This more closely matches other editors (e.g. vim) which have similar indentation control. Patch by Michael Hansen REVIEW: 120760 M +23 -7 src/document/katedocument.cpp M +6 -1 src/document/katedocument.h http://commits.kde.org/ktexteditor/204fed7b8f5aaaa8b8d4516664b8720f6c2b8315 |