aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-10-30Ensure all ViewStyle fields are initialized.Neil2-31/+17
2021-10-30Minor changes to avoid warnings from linters.Neil2-11/+11
2021-10-29Remove standard operations for XPM module to follow rule-of-zero.Neil2-26/+0
2021-10-26Mark method const as its a reader.Neil1-1/+1
2021-10-26Explicit constructors.Neil2-2/+2
2021-10-26Ensure variables initialized.Neil1-1/+1
2021-10-24Avoid extra breaks introduced by revision 8993.Zufu Liu3-9/+17
2021-10-24Grammar in comment.Neil1-1/+1
2021-10-22Add CARETSTYLE_CURSES to draw more than 1 caret on curses terminal.Mitchell Foral5-13/+56
2021-10-22Feature [feature-requests:#1417] Change line wrapping to seek to line lengthZufu Liu1-26/+35
then backtrack to good break.
2021-10-21Feature [feature-requests:#1417] Cache maximum key value inZufu Liu2-4/+15
SpecialRepresentations as this allows quick determination of absence for most multi-byte UTF-8 and DBCS characters.
2021-10-21Feature [feature-requests:#1417] Use unsigned as that defines wrap-aroundZufu Liu2-2/+2
behaviour.
2021-10-21Feature [feature-requests:#1417] Simplify BreakFinder::Next.Zufu Liu1-9/+8
2021-10-21Feature [feature-requests:#1417] Use backward iteration to find space / controlZufu Liu4-43/+76
character and text / punctuation boundaries in SafeSegment as will be simpler and faster in almost all cases. Simplify BreakFinder::Next calling SafeSegment.
2021-10-17encodingFamily never changes so mark const.Zufu Liu1-1/+1
2021-10-17Remove SpecialRepresentations::Contains which is no longer used.Zufu Liu2-10/+0
2021-10-12Feature [feature-requests:#1416] Use range for.Neil2-7/+5
2021-10-12Feature [feature-requests:#1416] Prevent type mismatch.Neil1-1/+1
2021-10-12Feature [feature-requests:#1416] Use noexcept to mark impossibility ofNeil1-1/+1
exceptions in static intialisation.
2021-10-12Feature [feature-requests:#1416] Harmonize parameter name.Neil1-1/+1
2021-10-12Feature [feature-requests:#1416] Use nullptr.Neil2-10/+10
2021-10-09Remove call of virtual function during destruction as default destruction doesNeil1-3/+1
everything needed. Fixes warning from Cppcheck 2.6.
2021-10-08Feature [feature-requests:#1417] Use global IsControl instead of local function.Neil1-7/+1
2021-10-05Feature [feature-requests:#1417] Consolidate character classification functionsNeil5-99/+62
in CharacterType.h, merging duplicate functions, removing unused functions and stadardizing names.
2021-10-03Feature [feature-requests:#1417] Add DEL (0x7F) to set of space characters.Neil2-1/+5
2021-09-30Feature [feature-requests:#1416] Mark destructor as noexcept and use defaultZufu Liu2-3/+2
implementation.
2021-09-30Feature [feature-requests:#1416] Remove extra check that is never true andZufu Liu3-5/+3
remove parameter used just for this test.
2021-09-28Feature [feature-requests:#1416] Change evaluation order so that monospaceASCIIZufu Liu1-10/+14
checked before cache which may improve performance for monospaceASCII. Only reset clear state when storing into cache.
2021-09-28Fix bad layout of monospace text on Cocoa by adding separate fieldNeil3-1/+4
monospaceCharacterWidth for width of monospaced characters.
2021-09-28Widen styleNumber in PositionCacheEntry from 8 to 16 bits to allow stylesNeil7-8/+14
larger than 255 to be represented. Before this, it may have been possible but extremely rare for a cache entry to wrongly match a styled lexeme and produce incorrect layout. Using uint16_t from cstdint instead of a bit field as tools perform more checking on that.
2021-09-28Remove file that is no longer used or contain any definitions.Neil1-27/+0
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.