Scaffolding for selection upto surrounding whitespace

This commit is contained in:
Kovid Goyal
2025-04-23 05:53:31 +05:30
parent 2839eab5e4
commit ec35dfd4e2
3 changed files with 7 additions and 0 deletions

View File

@@ -426,6 +426,7 @@ def mouse_selection(func: str, rest: str) -> FuncArgsType:
'line': defines.MOUSE_SELECTION_LINE,
'line_from_point': defines.MOUSE_SELECTION_LINE_FROM_POINT,
'word_and_line_from_point': defines.MOUSE_SELECTION_WORD_AND_LINE_FROM_POINT,
'upto_surrounding_whitespace': defines.MOUSE_SELECTION_UPTO_SURROUNDING_WHITESPACE,
}
setattr(mouse_selection, 'code_map', cmap)
return func, [cmap[rest]]