diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 22:05:13 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 22:05:13 +0200 |
| commit | c94579526c082e75b9ee8ec2fc189540884ac039 (patch) | |
| tree | 9a66fad84e74d140727f055b2421e218daae98ff /editor.c | |
| parent | da264da19a0f8fccffad699f40be35fd2b82822f (diff) | |
| download | vis-c94579526c082e75b9ee8ec2fc189540884ac039.tar.gz vis-c94579526c082e75b9ee8ec2fc189540884ac039.tar.xz | |
Make window_selection_get to return the correct range
This makes the operator operate on the correct file range if executed
from visual mode.
The problem is that if the cursor is visible the selection seems larger
than it actually is. The cell under the cursor is actually not part
of the selection eventhough it is visually indistinguishable from it.
The somewhat hacky way around this is to hide the cursor once selection
is active and show it again once the selection is cleared.
This will probably cause a headache if the cursor needs to be visible
while a selection is active like for example in the command prompt.
Diffstat (limited to 'editor.c')
0 files changed, 0 insertions, 0 deletions
