• Martin Aumüller's avatar
    fakevim: fix indenting · 7ccdbc5e
    Martin Aumüller authored
    - 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>
fakevimplugin.cpp 23.5 KB