Skip to content
Snippets Groups Projects
Commit 7ccdbc5e authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: fix indenting


- the indented region has been off by one line as lineForPosition returns 1-based line numbers but QTextDocument::findBlockByNumber expects base 0
- all lines (including first and last line) have to be indented
- if text is collapsed, then findBlockByNumber has to be used instead of findBlockByLineNumber for getting the block containing a line

Merge-request: 96
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent a088b017
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment