Custom delimiters

This commit is contained in:
missionfloyd
2023-04-21 20:19:58 -06:00
parent c1fdba5904
commit 0e071ae504
2 changed files with 2 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ function keyupEditAttention(event){
function selectCurrentWord(){
if (selectionStart !== selectionEnd) return false;
const delimiters = " .,\\/!?%^*;:{}=`~()\r\n\t";
const delimiters = opts.keyedit_delimiters + " \r\n\t";
// seek backward until to find beggining
while (!delimiters.includes(text[selectionStart - 1]) && selectionStart > 0) {