diff options
author | Neil <nyamatongwe@gmail.com> | 2022-08-15 17:06:21 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-08-15 17:06:21 +1000 |
commit | f8236d657fd29f392c3474e96d43a2c73ea216e8 (patch) | |
tree | ac214aaad6346a7af948eb43dde77c734fa4e705 /src/PositionCache.h | |
parent | d93312d7c9a65b5a41bc4dbf53e81f98d5f2be1f (diff) | |
download | scintilla-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.h | 2 |
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; }; |