mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Removed RenameRefactor custom mouseClicked logic (redundant)
This commit is contained in:
1 parent
9de9e799d5
commit
6b40cbb367
1 file changed
+1
-12
@@ -859,18 +859,7 @@ public class RenameRefactorHandler {
|
||||
public boolean handleClick(int clickPosInText) {
|
||||
if (!active || callback == null)
|
||||
return false;
|
||||
|
||||
// Check if click is within the primary occurrence bounds
|
||||
if (clickPosInText >= primaryOccurrenceStart &&
|
||||
clickPosInText <= primaryOccurrenceEnd) {
|
||||
|
||||
// Set cursor position in the text and clear selection
|
||||
callback.setCursorPosition(clickPosInText);
|
||||
callback.getSelectionState().setSelection(-1, -1); // Clear selection
|
||||
callback.getSelectionState().markActivity();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user