aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-07-20 13:02:50 +0000
committernyamatongwe <devnull@localhost>2006-07-20 13:02:50 +0000
commit5a57c1da13344d553efc0cef366ff49a6e54d845 (patch)
treec4acba01a19db641df11db45d86eb2946d04e861 /src
parent93c349924ae5908a5fa83e978e7c82dba1b242a8 (diff)
downloadscintilla-mirror-5a57c1da13344d553efc0cef366ff49a6e54d845.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);
}