Registered Member
|
I am writing a small Kate script to add line numbers at the beginning of each line within selection.
However, the view.selection() always returns
The other calls view.hasSelection() and view.selectedText() are giving the correct results (e.g. True and the text within selection respectively). Any help will be appreciated. |
Registered Member
|
Interesting problem. I decided to check, it works for me on Kate 19.12.3:
|
Registered Member
|
Thanks @pvzh
I tried your code, but getting the same error with Kate version 22.04.3. debug(selection) gives "ReferenceError: Range is not defined" and selection.start "undefined" |
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]