From: David Lawrence Ramsey Date: Wed, 10 May 2006 12:37:15 +0000 (+0000) Subject: in browser_refresh(), make sure the highlighting of the currently X-Git-Tag: v1.3.12~188 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=02a7f8441206f7db0fb5a77531abed1ab8190828;p=nano.git in browser_refresh(), make sure the highlighting of the currently selected file or directory respects the -D/--boldtext option git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 9fb556bd..a6277f0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,11 +25,12 @@ CVS code - main(), display_string(), and do_credits(). (DLR) - Add the ability to use bold text instead of reverse video text, via the -D/--boldtext command line option and the - "boldtext" rcfile option. Changes to do_help(), usage(), - main(), update_statusbar_prompt(), do_yesno_prompt(), - titlebar(), statusbar(), onekey(), edit_draw(), - do_replace_highlight(), nano.1, nanorc.5, nano.texi, and - nanorc.sample. (DLR, suggested by Benno Schulenberg) + "boldtext" rcfile option. Changes to browser_refresh(), + do_help(), usage(), main(), update_statusbar_prompt(), + do_yesno_prompt(), titlebar(), statusbar(), onekey(), + edit_draw(), do_replace_highlight(), nano.1, nanorc.5, + nano.texi, and nanorc.sample. (DLR, suggested by Benno + Schulenberg) - Add the ability to use self-contained color syntaxes from separate files, accessible in the nanorc via the "include" command. New function parse_include(); changes to diff --git a/src/browser.c b/src/browser.c index ccd19338..1ef23c53 100644 --- a/src/browser.c +++ b/src/browser.c @@ -561,7 +561,7 @@ void browser_refresh(void) /* Highlight the currently selected file or directory. */ if (i == selected) - wattron(edit, A_REVERSE); + wattron(edit, reverse_attr); blank_line(edit, line, col, longest); mvwaddstr(edit, line, col, disp); @@ -598,7 +598,7 @@ void browser_refresh(void) mvwaddnstr(edit, line, col - strlen(foo), foo, foo_len); if (i == selected) - wattroff(edit, A_REVERSE); + wattroff(edit, reverse_attr); /* Add some space between the columns. */ col += 2;