:Prev :Next, CatchAll

This commit is contained in:
krzosa
2025-12-29 12:02:08 +01:00
parent ccf55d6d74
commit cde431549c
6 changed files with 38 additions and 44 deletions

View File

@@ -282,18 +282,12 @@ void OnCommand(Event event) {
}
}
if (Ctrl() && Shift() && Mouse(RIGHT)) {
} else if (Alt() && Ctrl() && Mouse(RIGHT)) {
} else if (Ctrl() && Mouse(RIGHT)) {
} else if (Alt() && Mouse(RIGHT)) {
} else if (Mouse(RIGHT)) {
if (Ctrl() && Mouse(RIGHT)) {
Vec2I mouse = MouseVec2I();
BSet active = GetBSet(ActiveWindowID);
bool mouse_in_document = AreOverlapping(mouse, active.window->document_rect);
if (mouse_in_document) {
Int p = ScreenSpaceToBufferPos(active.window, active.view, active.buffer, mouse);
Int p = ScreenSpaceToBufferPos(active.window, active.view, active.buffer, mouse);
Int saved_front = -1;
IterRemove(active.view->carets) {
@@ -315,6 +309,8 @@ void OnCommand(Event event) {
SaveStringInClipboard(string);
}
}
} else if (Mouse(RIGHT)) {
MouseLoadWord(event);
}
if (Ctrl() && Mouse(LEFT)) {