From cdcd270b8a261b97386f81aa6eaceb0b27747dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noelia=20Ruiz=20Mart=C3=ADnez?= Date: Sun, 24 Nov 2024 17:28:42 +0100 Subject: [PATCH] Improve documentation --- source/NVDAObjects/window/scintilla.py | 2 +- user_docs/en/changes.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/NVDAObjects/window/scintilla.py b/source/NVDAObjects/window/scintilla.py index e0cd8690009..20f34e13c87 100755 --- a/source/NVDAObjects/window/scintilla.py +++ b/source/NVDAObjects/window/scintilla.py @@ -314,7 +314,7 @@ def _getCharacterOffsets(self, offset): return [start, end] def collapse(self, end=False): - """Before collapsing to end, TextInfo is expanded to line. + """Before collapsing to end, if no text is selected, TextInfo is expanded to line. This fixes a bug where next braille line command didn't move the cursor to the last empty line in Notepad++ documents. https://github.com/nvaccess/nvda/issues/17430 diff --git a/user_docs/en/changes.md b/user_docs/en/changes.md index 04ead93b03e..3353ea3f000 100644 --- a/user_docs/en/changes.md +++ b/user_docs/en/changes.md @@ -116,7 +116,7 @@ As the NVDA update check URL is now configurable directly within NVDA, no replac * `SymphonyDocument.script_toggleTextAttribute` to `SymphonyDocument.script_changeTextFormatting` * The `space` keyword argument for `brailleDisplayDrivers.seikantk.InputGesture` now expects an `int` rather than a `bool`. (#17047, @school510587) * The `[upgrade]` configuration section including `[upgrade][newLaptopKeyboardLayout]` has been removed. (#17191) -* in `NVDAObjects.window.scintilla.ScintillaTextInfo`, the `collapse` method is overriden to expand to line if the `end` parameter is set to `True` (#17431, @nvdaes) +* in `NVDAObjects.window.scintilla.ScintillaTextInfo`, if no text is selected, the `collapse` method is overriden to expand to line if the `end` parameter is set to `True` (#17431, @nvdaes) #### Deprecations