On error in the text editor, the last word is invisibly selected when the line consists of two words #115542

Closed
opened 2023-11-28 20:54:58 +01:00 by Damien Picard · 1 comment
Member

System Information
Operating system: Linux-6.5.0-13-generic-x86_64-with-glibc2.38 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.129.03

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-28 17:45, hash: ff083c15956f
Worked: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: rB3e85bb34d0d7

Short description of error
When running a script which errors out, if the cursor is already at the end of the line and the line consists of two words, the last word is selected but this is not reflected visually, so pressing backspace will delete the entire word instead of just the last character.

Exact steps for others to reproduce the error

  • Type anything that consists of two words and will error out in a text editor, such as syntax error
  • Run the script
  • Press backspace
  • The entire word is deleted instead of just the last character.

text_editor_two_word_error.blend

**System Information** Operating system: Linux-6.5.0-13-generic-x86_64-with-glibc2.38 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.129.03 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-28 17:45, hash: `ff083c15956f` Worked: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `rB3e85bb34d0d7` **Short description of error** When running a script which errors out, if the cursor is already at the end of the line and the line consists of two words, the last word is selected but this is not reflected visually, so pressing backspace will delete the entire word instead of just the last character. **Exact steps for others to reproduce the error** - Type anything that consists of two words and will error out in a text editor, such as `syntax error` - Run the script - Press backspace - The entire word is deleted instead of just the last character. <video src="/attachments/ed34030a-720e-48a6-9a8c-f14d5d0d45ed" title="text_selection_error.mp4" controls></video> [text_editor_two_word_error.blend](/attachments/17623d6d-e3e0-4090-8af9-9ca98b42c781)
Damien Picard added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-11-28 20:54:59 +01:00
Iliya Katushenock added the
Interest
Python API
label 2023-11-28 21:15:05 +01:00
Philipp Oeser added
Interest
Text Editor
and removed
Interest
Python API
labels 2023-11-30 11:52:37 +01:00
Member

Can confirm

Can confirm
Philipp Oeser added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-11-30 11:53:01 +01:00
Philipp Oeser added the
Module
Python API
label 2023-11-30 11:57:46 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-05-27 14:08:29 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115542
No description provided.