mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 826388 - Allow single click on line numbers to add/remove breakpoints; r=rcampbell
This commit is contained in:
parent
3f57fb44a8
commit
9db627542c
@ -824,7 +824,7 @@ SourceEditor.prototype = {
|
||||
*/
|
||||
_linesRulerClick: function SE__linesRulerClick(aLineIndex, aEvent)
|
||||
{
|
||||
if (aLineIndex === undefined) {
|
||||
if (aLineIndex === undefined || aLineIndex == -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -839,7 +839,11 @@ SourceEditor.prototype = {
|
||||
selection.end : this.getLineEnd(aLineIndex);
|
||||
this.setSelection(newStart, newEnd);
|
||||
} else {
|
||||
this.setCaretPosition(aLineIndex);
|
||||
if (this._annotationRuler) {
|
||||
this._annotationRulerClick(aLineIndex, aEvent);
|
||||
} else {
|
||||
this.setCaretPosition(aLineIndex);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user