Bug 1219010

Summary: Regression: backspacing/deleting lost in mcedit with space-filled tabs
Product: [openSUSE] openSUSE Tumbleweed Reporter: Rihards Olups <richlv>
Component: OtherAssignee: Adam Majer <amajer>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Rihards Olups 2024-01-19 14:35:04 UTC
Reporting here as https://midnight-commander.org/wiki/NewTicket instructs "Please submit bug reports to your distribution unless you built the very latest version of Midnight Commander yourself".

mcedit configuration:

[ ] Fake half tabs
[ ] Backspace through tabs
[x] Fill tabs with spaces 
Tab spacing: 4

In older versions, this resulted in backspace and delete removing 4 spaces when reasonable. In the latest version, this only removes spaces one by one.

Going from memory, but should be mostly accurate description of the behaviour:
a) [tab][backspace] - 4 spaces are added, all 4 spaces are removed.
b) [tab][tab][backspace] - 8 spaces are added, 4 spaces are removed.
c) [tab][space][backspace] - 5 spaces are added, single space is removed, then scenario a happens.
d) [tab][home][delete] - 4 spaces are added, 4 spaces are deleted.
e) [tab][space][home][delete] - 5 spaces are added, 4 spaces are deleted.
Comment 1 Rihards Olups 2024-01-19 14:35:57 UTC
Missed the current version - mc-4.8.30-1.2.x86_64 from Tumbleweed packages.