Skip to content

editor.getTextRange crash notepad++ #224

@MaDill

Description

@MaDill

When I use getTextRange, notepad++ just crash and is closed without a message or error.

Configuration:

Notepad++ v8.3.1   (64-bit)
Build time : Feb 13 2022 - 15:41:12
Path : C:\_PortablePrograms\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit) 
OS Version : 2009
OS Build : 19044.1466
Current ANSI codepage : 1252
Plugins : DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll PythonScript.dll XMLTools.dll 

PythonScript Version 1.5.4.0 64bit

Testfile:

test1
test2as
test 3
test4
teSt5
tast6
tes17
test8
tes9
test10

Now I mark the word "test2as".

Console commands:

>>> editor.getSelText()
'test2as'
>>> editor.getSelectionStart()
7
>>> editor.getSelectionEnd()
14

When I now execute getTextRange in the console the console turns solid grey and after a few seconds notepad++ close itself.

>>> editor.getTextRange(7, 14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions