Skip to content

Commit

Permalink
fix: f, g, and h no longer impact behavior of /
Browse files Browse the repository at this point in the history
Removes special treatment of f, g, and h as implicit functions. Main side affect was that divide command worked different for variables containing f, g, or h compared to those without f, g, or h

fixes arnog#1869
  • Loading branch information
mgreminger committed Jul 2, 2023
1 parent 99a678e commit 4f798df
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/core-definitions/definitions-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -922,17 +922,6 @@ export function getDefinition(
};
}

// Special case `f`, `g` and `h` are recognized as functions.
if (
info &&
info.definitionType === 'symbol' &&
info.type === 'mord' &&
(info.codepoint === 0x66 ||
info.codepoint === 0x67 ||
info.codepoint === 0x68)
)
info.isFunction = true;

return info ?? null;
}

Expand Down

0 comments on commit 4f798df

Please sign in to comment.