commit 02a7f8441206f7db0fb5a77531abed1ab8190828
parent 26dd1b66de5074092bc65b97386a0a7d6285ccdb
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Wed, 10 May 2006 12:37:15 +0000
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
Diffstat:
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git 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
@@ -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;