sindresorhus/refined-github






Do you want to work on this issue?
You can request for a bounty in order to promote it!
backtick insertion within current selected text, includes trailling whitespaces #4420
staabm posted onGitHub
<!-- Thanks for reporting a bug! ⛰ Make sure the bug is caused by Refined GitHub. Try disabling the extension first. Show us the bug and help us replicate it, include: 1. A REAL URL where the bug appears. If it happens on a private repo, find an equivalent public URL. 2. A screenshot/video/gif of the issue, if it’s visual. 3. Any related errors in the browser’s console, if any. -->
backtick insertion of a current selected text, includes trailling whitespaces, which it shouldn't
repro
- while editing/creating a issue double click a word
- the double-clicked word get selected (including the trailling whitespace behind the word)
- press the backtick-key and refined github will sorround the selected word with backticks (including trailing whitespace)
example:
- a issue contains the text "the lazy fox jumps over.."
- double click the word 'lazy'
- press the backtick-key
- the resulting markup is "the
lazy
fox jumps over.." while it should be "thelazy
fox jumps over.." (spot the positions of the backticks)
reproduced in firefox 90a1 on windows10x64, with refined github 21.5.19. also reproducible on chrome 93.0.4525.0 on the same machine