aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
2002-09-04When changing code pages invalidate to ensure all text remeasured.nyamatongwe1-0/+1
2002-08-29Minor optimisations.nyamatongwe1-4/+7
2002-08-05Visible whitespace specifiable colours feature from Martin Alderson.nyamatongwe1-0/+25
2002-08-02Added keyboard commands to go to start and end of display lines.nyamatongwe1-0/+61
2002-08-02Made Ctrl+Up and Ctrl+Down not flicker when using strict caret policy.nyamatongwe1-7/+10
Avoided by not calling EnsureCaretVisible for these keys.
2002-08-02Changed InvalidateStyleRedraw to call NeedWrapping().nyamatongwe1-7/+1
2002-07-29Avoid Borland warning.nyamatongwe1-1/+1
2002-07-28Added new line cache validity level between invalid and positions correctnyamatongwe1-82/+147
for when some text or style may or may not have been changed. Allows optimization of the common case where a modification only changes the style of a small range of the document. Changed styling notifications to only include the range up to the last character that was actually modified. Full paint now paints all of the margins as well. Required to simplify handling of abandoned paints where styling causes fold markers to change. Tab key, in insert spaces mode, is treated as a single undo action.
2002-07-23Removed unnecessary line layout cache invalidation.nyamatongwe1-11/+13
Fixed problem where wrap needed was moving the last wrapped line forward past lines that were not yet wrapped. Minor improvement to LineLayout to handle lines that only need a single display line which is the majority most of the time.
2002-07-16Removed dead code.nyamatongwe1-3/+0
2002-07-11Patch from Philippe to improve caret policy.nyamatongwe1-77/+277
2002-07-05Take no action for SCI_GETTEXT with wParam == 0.nyamatongwe1-0/+2
2002-06-19TextHeight feature contributed by Josh Wingstrom.nyamatongwe1-0/+3
2002-05-07Clear all does not clear the contractionstate if in read-only mode.nyamatongwe1-1/+3
2002-04-23Fixed allocation to be larger to avoid Win32 API problem.nyamatongwe1-1/+3
2002-04-21Some Win64 compatibility and size_t correctness.nyamatongwe1-23/+24
2002-04-14Implemented endAtLastLine attribute which allows option of scrolling onenyamatongwe1-6/+24
page below last document line.
2002-04-12Fixed problem where caret would not move to previous line due to wrapping.nyamatongwe1-9/+21
2002-04-08Avoid visible changes when setting scroll width to same value.nyamatongwe1-2/+3
2002-04-07Added ZOOM notification. Added TextWidth method to allow clients to ↵nyamatongwe1-6/+32
determine width of text items such as width needed for line numbers.
2002-04-04Change to horizontal scrolling to allow the assumed document width to be set.nyamatongwe1-0/+11
2002-04-04Improved caret movement in read-only mode by handling more cases where text ↵nyamatongwe1-28/+27
is inserted and be removing handling of cases where text is deleted as these are handled automatically in the modification listener.
2002-04-03Enhancements to read-only mode to stop caret moving when typing or deleting.nyamatongwe1-10/+15
2002-03-04Fixed bug when switching buffers led to stale line layout cache entriesnyamatongwe1-1/+8
by deallocating the cache when switching buffers. When number of lines decreases, line layout cache entries for extra lines are deleted.
2002-03-04Fixed problem in wrapped mode where cursor up would not move because fornyamatongwe1-13/+13
a position that was at the end of a subline, and thus also the beginning of the next subline LocationFromPosition was favoring the end of subline. Treat a cached wrapping as invalid if the current wrap width is different to when the wrapping was done.
2002-03-04Fixed Borland warning.nyamatongwe1-4/+4
2002-03-01Fixed problem where brace highlights were remembered in line layout cache.nyamatongwe1-21/+47
2002-02-28Made number of display lines for a document line be dynamic.nyamatongwe1-34/+45
2002-02-28Line layout cache feature added.nyamatongwe1-323/+561
2002-02-12Avoid extra processing if SETHSCROLLBAR used to set to same value asnyamatongwe1-3/+5
before.
2002-02-09Removed unused variable.nyamatongwe1-3/+0
2002-02-07After rectangular paste, caret is left at initial position.nyamatongwe1-1/+1
2002-02-03Patch to ensure caret on after mouse wheel scroll or pressingnyamatongwe1-6/+6
End when already at line end.
2002-02-03When changing document, ensured rewrap performed.nyamatongwe1-0/+1
Made memory allocation a little safer in ContractionState.
2002-01-27Fixed wrapping problems with displaying visible space characters onnyamatongwe1-3/+4
sublines after the first and with showing selected EOLs on sublines before the last.
2002-01-25Removed performance tracing as it cused a divide by zero for Carl.nyamatongwe1-8/+8
2002-01-24Fixed problem with ensuring the caret is visible hen it is on a wrappednyamatongwe1-1/+20
line.
2002-01-24Added parameter to WordStartPosition / WordEndPosition to indicate thatnyamatongwe1-2/+2
only word characters should be considered parts of words.
2002-01-23Performs a rewrap when zoom changed.nyamatongwe1-0/+3
2002-01-18Updated copyrights for 2002.nyamatongwe1-1/+1
2002-01-16WrapLines performs scroll bar and top line maintenance.nyamatongwe1-12/+19
WrapLines called before ensuring a lin eis visible so doc<->visible mapping correct. When modification changes number of lines, NeedWrapping starts one line before. Horizontal scrolling disallowed even more when in wrap mode.
2002-01-10Made code bool-safe and turned Visual C++ warning 4800 back on.nyamatongwe1-42/+42
2002-01-10Patch from Kengo Jinno to make Japanese entry work on Windows 9x.nyamatongwe1-28/+33
More changes from Neil to avoid problem introduced by above with overstrike mode replacing one character with two. Comments about Digital Mars ifdefs.
2002-01-09Work on line wrapping.nyamatongwe1-18/+33
Rather than storing a needWrap flag, there is now a record of the last line wrapped, so if a change requires some rewrapping then the wrapping is only performed for the line of the change and subsequent lines. If a change in styling spills off the end of a line, such as occurs by starting a multiline comment, that style change may change the width of subsequent text so rewrapping is performed. When window resized, rewrap only done when width changed as resize may be only vertical.
2001-12-26When a paint is abandoned because there is a change in styling outside thenyamatongwe1-0/+3
painting rectangle, and line wrapping is on, the needWrap flag is set because the restyled text may be thinner or thicker and hence require different wrapping.
2001-12-23Fixed bug where changing to wrap mode when horizontally scrolled led tonyamatongwe1-0/+1
that sroll amount being kept with no way to return it to 0. Now setting to wrap mode sets the x offset to 0.
2001-12-23Fixed MovePositionSoVisible so that when navigating with arrow keys, thenyamatongwe1-4/+4
caret will move over folds correctly.
2001-12-20Unicode and multi-byte fixes to edge display and column number calculation.nyamatongwe1-5/+14
Tab arrows are drawn within their areas when line height is large.
2001-12-20Increased allocations for laying out and wrapping lines to allow 16000nyamatongwe1-5/+11
characters and 400 lines. Optimised display by reusing a LineLayout for all the visible lines of a document line. Fixed some processing of multi-byte and UTF-8 characters so that, for example, performing a rectangular selection does not select partial characters.
2001-12-20Added changeable attribute to styles that defaults to true. When it isnyamatongwe1-2/+8
false, text in this style is read only.