fix: can't toggle bookmark when mouse is at end of the line
This commit is contained in:
parent
e6b57b79c0
commit
29e5541477
|
@ -5148,7 +5148,8 @@ void MainWindow::onEditorContextMenu(const QPoint& pos)
|
||||||
QSynedit::BufferCoord p;
|
QSynedit::BufferCoord p;
|
||||||
int line;
|
int line;
|
||||||
if (editor->getPositionOfMouse(p)) {
|
if (editor->getPositionOfMouse(p)) {
|
||||||
line=p.line;
|
if (!editor->getLineOfMouse(line))
|
||||||
|
line=-1;
|
||||||
if (!switchHeaderSourceTarget(editor).isEmpty()) {
|
if (!switchHeaderSourceTarget(editor).isEmpty()) {
|
||||||
menu.addAction(ui->actionSwitchHeaderSource);
|
menu.addAction(ui->actionSwitchHeaderSource);
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
@ -5194,7 +5195,6 @@ void MainWindow::onEditorContextMenu(const QPoint& pos)
|
||||||
menu.addAction(ui->actionFile_Properties);
|
menu.addAction(ui->actionFile_Properties);
|
||||||
} else {
|
} else {
|
||||||
//mouse on gutter
|
//mouse on gutter
|
||||||
|
|
||||||
if (!editor->getLineOfMouse(line))
|
if (!editor->getLineOfMouse(line))
|
||||||
line=-1;
|
line=-1;
|
||||||
if (canDebug) {
|
if (canDebug) {
|
||||||
|
|
Loading…
Reference in New Issue