From 52b0e7db52d6414122b0fc0d873f6cda4b038b77 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Sat, 3 Oct 2020 16:05:18 +0200 Subject: [PATCH] Add comment explaining the URL numbering --- src/filterHotSpots/FilterChain.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/filterHotSpots/FilterChain.cpp b/src/filterHotSpots/FilterChain.cpp index defd15d6..2dbdcaa6 100644 --- a/src/filterHotSpots/FilterChain.cpp +++ b/src/filterHotSpots/FilterChain.cpp @@ -256,7 +256,11 @@ void FilterChain::paint(TerminalDisplay* td, QPainter& painter) int urlNumInc; // TODO: Remove _reverseUrllHints from TerminalDisplay. - if (_reverseUrlHints) { // TODO: Access reverseUrlHints from the profile, here. + // TODO: Access reverseUrlHints from the profile, here. + if (_reverseUrlHints) { + // The URL hint numbering should be 'physically' increasing on the + // keyboard, so they start at one and end up on 10 (on 0, or at least + // they used to, but it seems to have changed, I'll fix that later). urlNumber = count(HotSpot::Link); urlNumInc = -1; } else {