aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-04-29 11:17:50 +1000
committernyamatongwe <unknown>2011-04-29 11:17:50 +1000
commit0ae4049da9517830c556a57b196d0213d4a46bf5 (patch)
tree6cc1e0b1c57d6f09e3f4cd4c464b2f15a77988b6 /src
parent2feb7b2c746916dfa99f24a521def6f42a0713ff (diff)
downloadscintilla-mirror-0ae4049da9517830c556a57b196d0213d4a46bf5.tar.gz
Draw SC_IV_LOOKBOTH indent guides on first line if it is empty. Bug #3291317.
From Marko Njezic.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index afeffc86f..8e61106c7 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3050,7 +3050,8 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
lineNextWithText++;
}
if (lineNextWithText > line) {
- // This line is empty, so use indentation of last line with text
+ xStartText = 100000; // Don't limit to visible indentation on empty line
+ // This line is empty, so use indentation of first next line with text
indentSpace = Platform::Maximum(indentSpace,
pdoc->GetLineIndentation(lineNextWithText));
}