commandline --selection-start and --selection-end implementation

Fixes #9197
This commit is contained in:
Sergei Shilovsky
2022-10-05 19:51:00 +03:00
committed by GitHub
parent dcf52dbba5
commit e274ef6c0d
3 changed files with 46 additions and 2 deletions

View File

@@ -26,6 +26,12 @@ The following options are available:
If no argument is given, the current cursor position is printed, otherwise the argument is interpreted as the new cursor position.
If one of the options **-j**, **-p** or **-t** is given, the position is relative to the respective substring instead of the entire command line buffer.
**-B** or **--selection-start**
Get current position of the selection start in the buffer.
**-E** or **--selection-end**
Get current position of the selection end in the buffer.
**-f** or **--function**
Causes any additional arguments to be interpreted as input functions, and puts them into the queue, so that they will be read before any additional actual key presses are.
This option cannot be combined with any other option.