Commit Graph

182 Commits

Author SHA1 Message Date
Martin
faccb609a2 SynEdit: fix "paste as column", don't move caret-x, if last pasted line is empty 2025-02-23 17:10:56 +01:00
Martin
bdf387d20f SynEdit: add LazLoggerbase to avoid deprecated dbgs / initialize some global var to suppress warning 2025-02-23 13:21:04 +01:00
Martin
3bf2791292 SynEdit: WrappedView, Caret, fixed position for fullwidth chars 2025-02-16 22:48:14 +01:00
Martin
3fda8a05e9 SynEdit: Rename some type-declaration to differentiate between text-point (logical/physical/viewed/...) 2025-02-06 21:42:23 +01:00
Martin
2a874e1c87 SynEdit: fix invalidate gutter-lines, if caret Viewed-Y changes 2025-01-24 21:43:09 +01:00
Martin
1bd921e445 SynEdit: added adjusting column selection in shared edit / fixed, prevent column-sel-bounds from becoming invalid (bytepos in middle of utf8 char) 2024-10-04 01:41:26 +02:00
Martin
b97a15169d SynEdit: some optimization to avoid unnecessary Log/Phys point conversions. 2024-10-02 13:44:21 +02:00
Martin
ef3d4efc17 SynEdit: fix calculation of scroll-range, to keep text-caret visible if at EOL 2023-05-28 11:52:45 +02:00
Martin
bb62b8f64d SynEdit: Fix tab-indent of line-mode-selection (last line was ignored, if caret.y=1). Part of issue #39998 2023-03-05 14:10:43 +01:00
Martin
398de0f4b4 SynEdit: Internal caret (multi caret / custom-color caret) keep visible while scrolling. 2022-04-01 15:02:47 +02:00
Martin
f5e70a4f0b SynEdit: Internal caret (multi caret / custom-color caret) wait for Paint event. Avoid moving/painting the internal caret onto outdated text. 2022-04-01 15:02:47 +02:00
martin
a2f76da804 SynEdit: workaround for issue #38766 / fpc generates bad code on aach64
git-svn-id: trunk@65024 -
2021-04-19 18:05:15 +00:00
martin
38d12137b3 SynEdit: fix for replace in column-mode selection
git-svn-id: trunk@64827 -
2021-03-16 20:40:24 +00:00
pascal
54029095cc SynEdit: add notification of line add
git-svn-id: trunk@64109 -
2020-11-06 08:06:29 +00:00
martin
fa075e2a66 SynEdit: Fix calculation of "Viewed" block boundaries.
git-svn-id: trunk@63527 -
2020-07-07 14:13:07 +00:00
martin
9c5367d8b7 SynEdit: clean up - unused unit / units for implementation only
git-svn-id: trunk@63411 -
2020-06-21 02:26:57 +00:00
martin
ad49c7a7db SynEdit: Fixed Caret.ViewedPos // install handler to detect changes
git-svn-id: trunk@63292 -
2020-06-04 23:05:25 +00:00
martin
80b71e85fb SynEdit: Move caret up/down by viewed line.
git-svn-id: trunk@63283 -
2020-06-03 23:28:15 +00:00
martin
0530c0faf1 Add ViewedLineCharPos to caret class
git-svn-id: trunk@63268 -
2020-06-02 00:37:13 +00:00
martin
1ffd1db833 SynEdit: refactor caret, common InternalEmptyLinesSetPos
git-svn-id: trunk@63265 -
2020-06-02 00:37:08 +00:00
martin
a6cca4acfe SynEdit: Changed TextPosAddLines (foldview) to AddVisibleOffsetToTextIndex (textview)
git-svn-id: trunk@63209 -
2020-05-22 14:54:22 +00:00
martin
4c5edbe734 SynEdit: Refactor Notification from Lines. Cache in TextViewManager, and deal with TextBuffer changes (no more need to update in senrTextBufferChanged
git-svn-id: trunk@63197 -
2020-05-21 15:48:47 +00:00
marcus
51f2804834 MUI: use old internal painter for synedit caret
git-svn-id: trunk@62767 -
2020-03-13 21:19:08 +00:00
martin
0fbdea80f8 SynEdit: Use logical pos to mark selection (column mode shows fragmented start/end on double width char)
git-svn-id: trunk@62606 -
2020-02-03 20:23:57 +00:00
martin
39650cf381 SynEdit, IDE: added ecMoveSelection...up/down/right/left, ecDuplicateSelection
git-svn-id: trunk@62575 -
2020-01-21 19:27:09 +00:00
martin
050d7b2f7f SynEdit: fix Selection.IncPersistentLock(weak) for newly inserted lines
git-svn-id: trunk@62419 -
2019-12-19 18:04:15 +00:00
martin
cc0a2ae11b SynEdit: Keep Caret.y (and selection) at 1, even for lines.count = 0
git-svn-id: trunk@61680 -
2019-08-10 21:54:59 +00:00
martin
053a87352a SynEdit: fix adjusting selection on empty edit (lines.count = 0) for SetTextBetweenPoints
git-svn-id: trunk@61678 -
2019-08-10 18:54:52 +00:00
martin
8e33ddad91 SynEdit: fix adjusting empty/backward selection for SetTextBetweenPoints
git-svn-id: trunk@61677 -
2019-08-10 18:54:06 +00:00
martin
c162d92785 SynEdit: Reduce painting when scrolling in multi-caret mode. Issue #35854
git-svn-id: trunk@61649 -
2019-07-31 20:37:09 +00:00
martin
519161a185 SynEdit, GTK2: fix ghost caret during scrolling
git-svn-id: trunk@61028 -
2019-04-20 19:57:06 +00:00
martin
f3eefeade7 SynEdit: Added checks for revision 59971 #6bedb95bcd (fix selection with smLine should include folded lines - Issue #0034760) - apply only if AutoExtend is true (indicates user input key/mouse) / Setting Selection from code should not be affected.
git-svn-id: trunk@59983 -
2019-01-03 18:10:15 +00:00
martin
6bedb95bcd SynEdit: fix selection with smLine (include some selection via gutter) should include folded lines, if the "fold start" line gets selected. Issue #0034760
git-svn-id: trunk@59971 -
2019-01-02 15:02:00 +00:00
zeljko
1d51dbaf10 SynEdit: removed workaround for Qt/Qt5. issue #34563
git-svn-id: trunk@59591 -
2018-11-18 11:56:49 +00:00
martin
95d0c815b2 SynEdit: fix caret blinking after ResetInterval. (Enable timer)
git-svn-id: trunk@59585 -
2018-11-18 01:01:17 +00:00
martin
2ff6995d1d SynEdit: workaround for issue #0034563 / QT: does return false even if caret was created => causing ghost caret in synedit to show (during code completion, qt only). Commit can/should be undone when issue is fixed.
git-svn-id: trunk@59580 -
2018-11-17 20:38:46 +00:00
martin
6f9cdaefbe SynEdit: Option to have a static (none blinking) persistent caret. Issue #0033653
git-svn-id: trunk@58534 -
2018-07-15 19:49:49 +00:00
martin
22cab1ecb2 SynEdit: Multi-caret: On windows support none blinking system settings. issue #30513
git-svn-id: trunk@58303 -
2018-06-18 10:17:10 +00:00
martin
d263fdd881 SynEdit: Multi-caret: On windows use system settings for caret blink rate. issue #30513
git-svn-id: trunk@58292 -
2018-06-16 20:34:07 +00:00
martin
b1f7528188 SynEdit: Multi-caret: when off, keep the single caret drawn by OS (important for screen readers).
git-svn-id: trunk@58291 -
2018-06-16 20:24:54 +00:00
juha
f440f660a2 Refactor: move CompareMethods to LazMethodList. Keep alias in LCLProc.
git-svn-id: trunk@58204 -
2018-06-09 14:39:36 +00:00
martin
cc7bb6c248 SynEdit: fix position of multi-caret (after EOL), when column selection is deleted. Issue #0032161
git-svn-id: trunk@58181 -
2018-06-08 10:19:06 +00:00
juha
c3e1dc4ad5 Reduce compiler warnings, initialize some uninitialized variables.
git-svn-id: trunk@56869 -
2017-12-29 18:47:51 +00:00
juha
9ac7781f41 SynEdit: Select UTF8 text correctly when Persistent Block is active. Issue #32667, patch from Bartek Dajewski.
git-svn-id: trunk@56357 -
2017-11-10 23:09:30 +00:00
martin
7e8132a70d SynEdit: Paint Caret in paint-event (except win32) / some very few gtk may have issues
git-svn-id: trunk@55941 -
2017-09-28 22:01:04 +00:00
zeljko
f684952850 Qt5: integration into LCL
git-svn-id: trunk@53807 -
2016-12-30 15:05:34 +00:00
martin
1c0abfedcb SynEdit: more precise change indicator gutter. Issue #30152
git-svn-id: trunk@52474 -
2016-06-10 21:34:50 +00:00
martin
a564fde4c8 SynEdit: fixed (un-)indent selection in linemode (select via gutter). Issue #0029591
git-svn-id: trunk@51578 -
2016-02-10 16:54:05 +00:00
martin
6e78df57da SynEdit: fix invalidate (repaint) on line selection through gutter click / issue #0029490
git-svn-id: trunk@51576 -
2016-02-10 16:35:37 +00:00
martin
14cd12d46f SynEdit: fix scroll pos after folding. issue #0029534
git-svn-id: trunk@51574 -
2016-02-10 16:00:21 +00:00