mirror of
https://github.com/gchq/CyberChef
synced 2025-01-08 10:38:46 +00:00
Don't highlight if the input and output tab numbers are different
This commit is contained in:
parent
35d6c7d79e
commit
cbfde7ddb1
1 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,8 @@ class HighlighterWaiter {
|
||||||
displayHighlights(pos, direction) {
|
displayHighlights(pos, direction) {
|
||||||
if (!pos) return;
|
if (!pos) return;
|
||||||
|
|
||||||
|
if (this.manager.input.getActiveTab() !== this.manager.output.getActiveTab()) return;
|
||||||
|
|
||||||
const io = direction === "forward" ? "output" : "input";
|
const io = direction === "forward" ? "output" : "input";
|
||||||
|
|
||||||
document.getElementById(io + "-selection-info").innerHTML = this.selectionInfo(pos[0].start, pos[0].end);
|
document.getElementById(io + "-selection-info").innerHTML = this.selectionInfo(pos[0].start, pos[0].end);
|
||||||
|
|
Loading…
Reference in a new issue