aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-07-20 13:02:50 +0000
committernyamatongwe <unknown>2006-07-20 13:02:50 +0000
commit49114cfaf0bf8a5c6e49db3b6fe5dc2cd11e6ec8 (patch)
treec4acba01a19db641df11db45d86eb2946d04e861 /src
parent2b9a42e9d5b3105bbd8f4c18c2ac05a190cdd107 (diff)
downloadscintilla-mirror-49114cfaf0bf8a5c6e49db3b6fe5dc2cd11e6ec8.tar.gz
Added line and position to SCN_DOUBLECLICK notification.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 87a0391b4..bcaa8f839 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3612,9 +3612,11 @@ void Editor::NotifyModifyAttempt() {
NotifyParent(scn);
}
-void Editor::NotifyDoubleClick(Point, bool) {
+void Editor::NotifyDoubleClick(Point pt, bool) {
SCNotification scn = {0};
scn.nmhdr.code = SCN_DOUBLECLICK;
+ scn.line = LineFromLocation(pt);
+ scn.position = PositionFromLocationClose(pt);
NotifyParent(scn);
}