diff options
author | nyamatongwe <devnull@localhost> | 2011-08-08 11:38:58 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-08-08 11:38:58 +1000 |
commit | 16c1ec3dfcb46afef91e2d21cf04b63112cd9a55 (patch) | |
tree | 488a3796cb2b09ecdbdf0d935891aac1c77b0c83 | |
parent | 13d3781cbaebe09a009ad7e3cbf909ed096c2a9e (diff) | |
download | scintilla-mirror-16c1ec3dfcb46afef91e2d21cf04b63112cd9a55.tar.gz |
Fix tab positioning to make indent guides and tab characters align.
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 42e52a711..f5649ce11 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2237,7 +2237,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou if (vstyle.styles[ll->styles[charInLine]].visible) { if (isControl) { if (ll->chars[charInLine] == '\t') { - ll->positions[charInLine + 1] = ((((startsegx + 2) / + ll->positions[charInLine + 1] = ((((static_cast<int>(startsegx) + 2) / tabWidth) + 1) * tabWidth) - startsegx; } else if (controlCharSymbol < 32) { if (ctrlCharWidth[ll->chars[charInLine]] == 0) { |