Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175018 - app-misc/mc: select of current path causes errors because of decoration
Summary: app-misc/mc: select of current path causes errors because of decoration
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 04:20 UTC by me
Modified: 2009-08-02 14:51 UTC (History)
0 users

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


Attachments
patched ebuild (mc-4.6.1-r4.ebuild,3.95 KB, text/plain)
2007-04-18 04:23 UTC, me
Details
enhancement to screen.c (mc-4.6.1-xselect.patch,890 bytes, text/plain)
2007-04-18 04:26 UTC, me
Details

Note You need to log in before you can comment on or make changes to this bug.
Description me 2007-04-18 04:20:07 UTC
when you try to select the current path in mc using shift+selection in a xterm you often end up with a buffer that contains a '-' at the beginning or end of the path.
to prevent this behaviour i created a patch and a r4 for app-misc/mc that replaces the decoration with a single blank before and after the path



Reproducible: Always

Steps to Reproduce:
1.select a path using shift+select in xterm
2.paste that path elsewhere using middleclick


Actual Results:  
-/usr/portage/--

Expected Results:  
/usr/portage

first submission to gentoo repository. tested on x86 and against 4.6.1-r3
please point out what i could have done better
thanx
Comment 1 me 2007-04-18 04:23:50 UTC
Created attachment 116599 [details]
patched ebuild

patched ebuild, that includes the c-patch into the build process
Comment 2 me 2007-04-18 04:26:28 UTC
Created attachment 116600 [details]
enhancement to screen.c

introduces a local int 'len', stores the strlen of the current path in this variable and puts to whitespaces on the panel, right before and right after the path.
should end in files subfolder
Comment 3 Bryan Østergaard (RETIRED) gentoo-dev 2007-04-20 05:57:08 UTC
Please don't file ebuild bugs in the Developer Relations Product. They belong in the Gentoo Linux product instead.
Comment 4 me 2007-04-20 10:31:09 UTC
moved to Gentoo Linux product
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-08-02 14:51:15 UTC
Try 4.7.0_pre1, reopen if this is still a issue.