aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-09-21Remove line end space.Neil1-1/+1
2021-09-17Remove superfluous destruction.Zufu Liu1-5/+1
2021-09-17Add noexcept and constexpr where reasonable.Zufu Liu3-3/+3
2021-09-16Avoid warning from Xcode.Neil Hodgson1-1/+1
2021-09-15Document lifetime of FontSpecification::fontName.Neil1-0/+1
2021-09-15Ensure variable initialised.Neil1-1/+1
2021-09-15Avoid some type warningsNeil3-12/+7
2021-09-15Move colour mixing implementations into implementation file.Neil2-18/+26
Avoids some warnings but drops constexpr. Use MixedWith in PlatWin for GDI instead of local implementation. Add unit tests for Geometry.
2021-09-15More accurate with 'noexcept'.Neil4-8/+6
2021-09-15Use delegating constructor instead of separate Init method.Neil2-115/+112
2021-09-14Break up PaintOneMargin more and simplify code.Neil2-92/+106
2021-09-14Convert to range for and extract colourMode.Zufu Liu1-14/+14
2021-09-14Use range-for to save font names.Zufu Liu1-2/+2
2021-09-14Remove copying from AllocateExtendedStyles as performed by EnsureStyle.Zufu Liu1-3/+0
2021-09-14Avoid some allocations when checking whether font monospaced.Zufu Liu1-6/+7
2021-09-12Make negative settings for extra ascent and descent safer by ensuring calculatedNeil4-12/+18
ascent and thus line height is at least 1 pixel. Allow 1 point font minimum instead of 2 as this may help with document maps. Document negative extra ascent and descent. Use XYPOSITION for ascent and descent for more coherent types and fewer casts but floor the values when retrieving from Surface so behaviour is unchanged.
2021-09-07Handle case where all lines are hidden by a filter and kinetic scrollingNeil Hodgson1-1/+1
causes drawing of negative line number.
2021-09-07Move bulk of PaintMargin into PaintOneMargin which paints one margin.Neil2-249/+256
This reduces nesting and indentation.
2021-09-02Bug [#2281] Fix crash with too many subexpressions in regular expression searchNeil1-1/+1
with SCFIND_CXX11REGEX.
2021-08-31Make Cancel methods noexcept as they may need to be used in destructors.Neil4-4/+4
2021-08-31Reduce Code Analysis warnings.Neil1-2/+7
2021-08-31Simplify Style types FontSpecification, FontMeasurements, Style, FontRealised.Neil4-164/+59
Rely on shared_ptr and use standard copying where possible. Check extraFontFlag and checkMonospaced for FontSpecification comparisons.
2021-08-28Delete standard operations on classes that can not be copied.Neil1-0/+5
2021-08-28Follow rule-of-zero by removing unnecessary destructors.Neil3-10/+0
2021-08-27Feature [feature-requests:#841] Remove hotspot from LineLayout and rely onZufu Liu6-14/+3
reference to model.
2021-08-25Allow SCI_HIDELINES to hide the first line or all lines.Neil2-3/+2
2021-08-24Remove line end white space.Neil8-13/+13
2021-08-24OptionalFoldLevel uses no members so mark static.Zufu Liu1-1/+1
2021-08-24Feature [feature-requests:#841] SCI_SETCARETLINEHIGHLIGHTSUBLINE enablesZufu Liu4-8/+18
highlighting just the subline with the caret when wrapping is on.
2021-08-23Fix change set 8902 which could cause caret to stop blinking.Neil1-3/+3
Occurred when a redraw was requested during a paint.
2021-08-22Follow rule-of-zero / rule-of-5 where reasonable by removing standard operatorsNeil10-24/+2
that are not needed.
2021-08-22Encapsulate an ILexer5* in LexerInstance class to simplify client code.Neil3-39/+44
2021-08-14Optimize by reducing invalidation as this can be costly.Neil2-0/+22
If all of the text area or margin area is invalidated then remember this and don't do any more invalidations for that area until the window is painted. This reduced the time taken to replace each \r\n with \n\n in very large files by a factor of 3.
2021-08-07Changes for Cppcheck 2.5.Neil2-2/+2
Shift of unsigned to avoid too much shifting and overflow warnings. Remove condition that was always true. Remove suppressions no longer needed.
2021-07-31Implement StyleSetCheckMonospaced.Neil5-1/+46
2021-07-29Add SC_ELEMENT_HIDDEN_LINE to show where lines are hidden.Neil1-0/+11
2021-07-29Add SC_ELEMENT_FOLD_LINE to set the colour of fold lines.Neil1-2/+4
2021-07-29Fix display of fold lines when wrapped so they are only drawn once per line, notNeil1-6/+10
on each subline.
2021-07-29Use Side call to reduce code.Neil1-6/+2
2021-07-29Make iterators const where possible.Neil1-6/+6
2021-07-29Feature [feature-requests:#1413] Decrease cost of representation for \r\n.Zufu Liu2-16/+50
2021-07-24Bug [#2269]. Fix error with MSVC with /std:c++latest.rel-5-1-1Zufu Liu1-2/+0
2021-07-17Add SCI_AUTOCSETOPTIONS to allow choosing a non-resizeable autocompletion listNeil4-6/+19
on Win32. This also avoids a header rectangle above the list.
2021-07-17Added PLAT_QT_QML define for a Qt QML/Quick platform layer.Neil1-0/+5
https://github.com/mneuroth/SciTEQt
2021-07-17Fix minor inconsistency with word searching results at start and end of documentNeil1-5/+9
which were considered word start / end positions even when first or last character did not fit requirements.
2021-07-17Extract word edge detection to prepare for fixing bug.Neil1-8/+11
This change does not affect behaviour.
2021-07-15Feature [feature-requests:#1370] Implement SCI_ALLOCATELINES to allocate indicesZufu Liu6-0/+38
to hold some number of lines. This is an optimization that can decrease reallocation overhead.
2021-07-16SplitVector::RoomFor does not resize when there is exactly enough room as thisNeil1-14/+16
prevents extra reallocations. This change made 0-length gaps more likely and that caused attempts to std::move by 0 which is undefined and failed with the g++ standard library. Fixed by not moving for 0-length gap.
2021-07-16Feature [feature-requests:#1381] Fix position returned when in 2nd segment.Neil1-1/+1
2021-07-16Feature [feature-requests:#1381] Avoid strlen and more complex comparison.Zufu Liu1-3/+3