aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2017-02-15 21:49:18 +0100
committerRobert Loehning <robert.loehning@qt.io>2017-02-17 16:59:47 +0000
commit5ac44bcf64b6e722f3087aedf50a887dd362c103 (patch)
tree06bc34dadaf4b08f3d5c735b1358ecfd0d0c4caf /src/plugins/fakevim
parent5d0636fadd5a9b568fd74bab6f5c326581de6bb8 (diff)
FakeVim: Remove dead code
Change-Id: I2e331e1e7ae23f7457cd4e19107fceff85e118e6 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimplugin.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp
index bdc35dd070a..c26ebe71a5f 100644
--- a/src/plugins/fakevim/fakevimplugin.cpp
+++ b/src/plugins/fakevim/fakevimplugin.cpp
@@ -1629,13 +1629,10 @@ void FakeVimPluginPrivate::fold(FakeVimHandler *handler, int depth, bool fold)
if (TextDocumentLayout::isFolded(block)) {
if (depth < 0) {
// recursively open fold
- while (depth < 0 && block.isValid()
+ while (block.isValid()
&& TextDocumentLayout::foldingIndent(block) >= indent) {
- if (TextDocumentLayout::canFold(block)) {
+ if (TextDocumentLayout::canFold(block))
TextDocumentLayout::doFoldOrUnfold(block, true);
- if (depth > 0)
- --depth;
- }
block = block.next();
}
} else {