https://bugs.kde.org/show_bug.cgi?id=456701
Bug ID: 456701 Summary: view.selection() returns ReferenceError: Range is not defined Product: kate Version: 22.04.3 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: scripting Assignee: kwrite-bugs-n...@kde.org Reporter: lomaharsh...@gmail.com Target Milestone: --- SUMMARY *** Returned range from view.selection() is always invalid even with valid text selection *** STEPS TO REPRODUCE 1. Create a script with calls to view.hasSelection(), view.selection() and view.selectedText() 2. Make a text selection in view 3. Execute the script OBSERVED RESULT view.hasSelection() returns True, view.selectedText() returns the text within selection range but view.selection() returns ReferenceError: Range is not defined EXPECTED RESULT view.selection() should return a valid range object with start cursor and end cursor of the selection SOFTWARE/OS VERSIONS Linux/KDE Plasma: ArchLinux (available in About System) KDE Plasma Version: 5.25.3 KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.