[PATCH] Bad permission highlighting
- From: Jindrich Novy <jnovy redhat com>
- To: MC Devel <mc-devel gnome org>
- Subject: [PATCH] Bad permission highlighting
- Date: Fri, 06 Jan 2006 13:32:42 +0100
Hello mc-devel,
Andy Shevchenko reported a bug to me for bad permissions highlighting.
I've written a patch for it and it's attached. It's not a big deal but
it fixes the highlighting problem.
For reference:
http://bugzilla.redhat.com/177100
ChangeLog:
2006-01-06 Jindrich Novy <jnovy redhat com>
* screen.c (add_permission_string): Fix incorrectly shifted
highlighting of permission string.
Thanks,
Jindrich
--
Jindrich Novy <jnovy redhat com>, http://people.redhat.com/jnovy/
(o_ _o)
//\ The worst evil in the world is refusal to think. //\
V_/_ _\_V
--- mc-4.6.1a/src/screen.c.perm 2006-01-06 13:09:18.000000000 +0100
+++ mc-4.6.1a/src/screen.c 2006-01-06 13:08:55.000000000 +0100
@@ -161,7 +161,7 @@ add_permission_string (char *dest, int w
}
for(i = 0; i < width; i++){
- if (i >= l && i < r){
+ if (i > l && i <= r){
if (attr == SELECTED || attr == MARKED_SELECTED)
attrset (MARKED_SELECTED_COLOR);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]