Skip to content
Snippets Groups Projects
Commit 59fc8642 authored by dgelessus's avatar dgelessus
Browse files

Adjust condition in inspectInPreference to match completeInPreference

parent 6b381e4b
Branches
Tags
No related merge requests found
......@@ -444,7 +444,7 @@ public final class CommandUtils {
public static @Nullable DisplayData inspectInPreference(final @NotNull Trace trace, final @NotNull String code, final int at) {
final Matcher prefNameMatcher = B_IDENTIFIER_PATTERN.matcher(code);
if (prefNameMatcher.lookingAt()) {
if (prefNameMatcher.lookingAt() && at <= prefNameMatcher.end()) {
final String name = prefNameMatcher.group();
final GetPreferenceCommand cmdCurrent = new GetPreferenceCommand(name);
final GetDefaultPreferencesCommand cmdDefaults = new GetDefaultPreferencesCommand();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment