aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-26 15:31:13 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-26 15:31:13 +1000
commitbaff93d6117396c57dbffbd28e69fde92712a88a (patch)
tree81408b42ca0c38ab288c84c45530c73385eb8aa0 /src/Editor.cxx
parent81f7847af4cc9f51f02ab191c73f394c457518bd (diff)
downloadscintilla-mirror-baff93d6117396c57dbffbd28e69fde92712a88a.tar.gz
Move hotspotSingleLine from ViewStyle to EditModel as it defines behaviour, not
appearance.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f241bf346..5dabfe6ad 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4760,8 +4760,8 @@ void Editor::SetHotSpotRange(const Point *pt) {
// range can encompass more than the run range and then
// the underline will not be drawn properly.
Range hsNew;
- hsNew.start = pdoc->ExtendStyleRange(pos, -1, vs.hotspotSingleLine);
- hsNew.end = pdoc->ExtendStyleRange(pos, 1, vs.hotspotSingleLine);
+ hsNew.start = pdoc->ExtendStyleRange(pos, -1, hotspotSingleLine);
+ hsNew.end = pdoc->ExtendStyleRange(pos, 1, hotspotSingleLine);
// Only invalidate the range if the hotspot range has changed...
if (!(hsNew == hotspot)) {
@@ -8046,12 +8046,12 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return vs.hotspotUnderline ? 1 : 0;
case SCI_SETHOTSPOTSINGLELINE:
- vs.hotspotSingleLine = wParam != 0;
+ hotspotSingleLine = wParam != 0;
InvalidateStyleRedraw();
break;
case SCI_GETHOTSPOTSINGLELINE:
- return vs.hotspotSingleLine ? 1 : 0;
+ return hotspotSingleLine ? 1 : 0;
case SCI_SETPASTECONVERTENDINGS:
convertPastes = wParam != 0;