Relates to: #2244
This works fine when a double-click highlights a word selection > 1 character. But if the selection only highlights a single character, getSelection() returns an empty string. Is this by design?
Details
- Browser and browser version: Chrome 78
- OS version: Linux
- xterm.js version: 4.3.0
Steps to reproduce
- ITerminalOptions.wordSeparator = ` .:;?!"'<>(/)[=]`
- term.write('Sex (M/F)? ')
- double-click the 'M'
- getSelection() returns ''
Online example: https://play.ddgame.us
Relates to: #2244
This works fine when a double-click highlights a word selection > 1 character. But if the selection only highlights a single character, getSelection() returns an empty string. Is this by design?
Details
Steps to reproduce
Online example: https://play.ddgame.us