Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207823 - app-misc/mc - mcedit backspace should erase \n characters also
Summary: app-misc/mc - mcedit backspace should erase \n characters also
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 01:19 UTC by Imre Péntek
Modified: 2009-08-05 11:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Imre Péntek 2008-01-28 01:19:10 UTC
in mcedit backspace doesn't erase backspace chars, instead it does nothing

Reproducible: Always

Steps to Reproduce:
$ mcedit `mktemp -t test.txt.XXXXXXXXXX`
write some dummy lines, then try to hit backspace at the beginning of any line
Actual Results:  
does not deletes the newline char

Expected Results:  
should delete it, as hitting delete key on the end of previous line does.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 01:26:49 UTC
Dunno what you mean, backspace works perfectly fine here.

[ebuild   R   ] app-misc/mc-4.6.1-r4  USE="7zip X gpm -ncurses nls pam -samba slang unicode" 3,869 kB 
Comment 2 Imre Péntek 2008-01-28 02:35:34 UTC
[ebuild   R   ] app-misc/mc-4.6.1-r4  USE="X gpm ncurses nls pam slang unicode -7zip -samba" 0 kB

backspace works fine for normal characters, but does nothing with a \n character

$ echo >/tmp/test.txt
$ mcedit /tmp/test.txt
now try to erase that one character using backspace.

As an additional info now I discovered that backspace works fine for root, but does not erase \n chars for regular user.
Comment 3 Imre Péntek 2008-01-28 02:57:23 UTC
~/.mc/ini:


editor_word_wrap_line_length=78
editor_key_emulation=0
editor_tab_spacing=4
editor_fill_tabs_with_spaces=1
editor_return_does_auto_indent=1
editor_backspace_through_tabs=0
editor_fake_half_tabs=0
editor_option_save_mode=0
editor_option_save_position=1
editor_option_backup_ext_int=-1
editor_option_auto_para_formatting=0
editor_option_typewriter_wrap=0
editor_edit_confirm_save=1
editor_syntax_highlighting=1

it seems like modifying this to contain
editor_backspace_through_tabs=1
will cause the issue. so it can be worked around, but I still consider this as a bug.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 09:32:06 UTC
(In reply to comment #3)
> it seems like modifying this to contain
> editor_backspace_through_tabs=1
> will cause the issue. 

No, still works just fine. Recompile without ncurses and try again; if that doesn't help you'll have to live with that I'm afraid, there's no maintainer in Gentoo and no alive upstream.