Add a configurable mouse action to select from the clicked point to the end of the line.

Fixes #3585
This commit is contained in:
Kovid Goyal
2021-05-11 09:01:52 +05:30
parent 2b4d55804c
commit 7a40959f13
7 changed files with 24 additions and 5 deletions

View File

@@ -336,6 +336,7 @@ def mouse_selection(func: str, rest: str) -> FuncArgsType:
'rectangle': defines.MOUSE_SELECTION_RECTANGLE,
'word': defines.MOUSE_SELECTION_WORD,
'line': defines.MOUSE_SELECTION_LINE,
'line_from_point': defines.MOUSE_SELECTION_LINE_FROM_POINT,
}
setattr(mouse_selection, 'code_map', cmap)
return func, [cmap[rest]]