Commit 02a7f844 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 8 additions and 7 deletions
+8 -7
...@@ -25,11 +25,12 @@ CVS code - ...@@ -25,11 +25,12 @@ CVS code -
main(), display_string(), and do_credits(). (DLR) main(), display_string(), and do_credits(). (DLR)
- Add the ability to use bold text instead of reverse video - Add the ability to use bold text instead of reverse video
text, via the -D/--boldtext command line option and the text, via the -D/--boldtext command line option and the
"boldtext" rcfile option. Changes to do_help(), usage(), "boldtext" rcfile option. Changes to browser_refresh(),
main(), update_statusbar_prompt(), do_yesno_prompt(), do_help(), usage(), main(), update_statusbar_prompt(),
titlebar(), statusbar(), onekey(), edit_draw(), do_yesno_prompt(), titlebar(), statusbar(), onekey(),
do_replace_highlight(), nano.1, nanorc.5, nano.texi, and edit_draw(), do_replace_highlight(), nano.1, nanorc.5,
nanorc.sample. (DLR, suggested by Benno Schulenberg) nano.texi, and nanorc.sample. (DLR, suggested by Benno
Schulenberg)
- Add the ability to use self-contained color syntaxes from - Add the ability to use self-contained color syntaxes from
separate files, accessible in the nanorc via the "include" separate files, accessible in the nanorc via the "include"
command. New function parse_include(); changes to command. New function parse_include(); changes to
......
...@@ -561,7 +561,7 @@ void browser_refresh(void) ...@@ -561,7 +561,7 @@ void browser_refresh(void)
/* Highlight the currently selected file or directory. */ /* Highlight the currently selected file or directory. */
if (i == selected) if (i == selected)
wattron(edit, A_REVERSE); wattron(edit, reverse_attr);
blank_line(edit, line, col, longest); blank_line(edit, line, col, longest);
mvwaddstr(edit, line, col, disp); mvwaddstr(edit, line, col, disp);
...@@ -598,7 +598,7 @@ void browser_refresh(void) ...@@ -598,7 +598,7 @@ void browser_refresh(void)
mvwaddnstr(edit, line, col - strlen(foo), foo, foo_len); mvwaddnstr(edit, line, col - strlen(foo), foo, foo_len);
if (i == selected) if (i == selected)
wattroff(edit, A_REVERSE); wattroff(edit, reverse_attr);
/* Add some space between the columns. */ /* Add some space between the columns. */
col += 2; col += 2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment