Skip to content
Snippets Groups Projects
Commit 7e111547 authored by Aske Bækdal Møller's avatar Aske Bækdal Møller Committed by Marius Vlad
Browse files

clients: keyboard: fix delete before cursor


When editing a text field in chromium deleting the surrounding text with
backspace fails with `The selection range for surrounding text is invalid`

It seems like `(start - keyboard->surrounding_text) - keyboard->surrounding_cursor` evaluates to -1.

As far as i can tell `start - keyboard->surrounding_text` evaluates to
the index in the surrounding_text char arrays that should be deleted.

Signed-off-by: default avatarAske Bækdal Møller <aske@geanix.com>
(cherry picked from commit 33ec3898)
parent 6f26c009
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment