aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-08-15 17:06:21 +1000
committerNeil <nyamatongwe@gmail.com>2022-08-15 17:06:21 +1000
commitf8236d657fd29f392c3474e96d43a2c73ea216e8 (patch)
treeac214aaad6346a7af948eb43dde77c734fa4e705 /src/PositionCache.h
parentd93312d7c9a65b5a41bc4dbf53e81f98d5f2be1f (diff)
downloadscintilla-mirror-f8236d657fd29f392c3474e96d43a2c73ea216e8.tar.gz
Fix bug where deletion at line end indicated with point disappeared when text
inserted on line. Ensure not using old data by clearing all positions - this was hiding problems because deleted positions were still set.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index 4d44f96e4..24e4e2d5a 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -86,6 +86,7 @@ public:
void Resize(int maxLineLength_);
void EnsureBidiData();
void Free() noexcept;
+ void ClearPositions();
void Invalidate(ValidLevel validity_) noexcept;
Sci::Line LineNumber() const noexcept;
bool CanHold(Sci::Line lineDoc, int lineLength_) const noexcept;
@@ -103,6 +104,7 @@ public:
int FindBefore(XYPOSITION x, Range range) const noexcept;
int FindPositionFromX(XYPOSITION x, Range range, bool charPosition) const noexcept;
Point PointFromPosition(int posInLine, int lineHeight, PointEnd pe) const noexcept;
+ XYPOSITION XInLine(Sci::Position index) const noexcept;
int EndLineStyle() const noexcept;
};