mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
edit/edit.c (edit_execute_cmd): Reload syntax on toggle to on.
This commit is contained in:
parent
17108c8b2e
commit
2157716489
@ -1,3 +1,7 @@
|
||||
2006-02-02 Leonard den Ottolander <leonard den ottolander nl>
|
||||
|
||||
* edit.c (edit_execute_cmd): Reload syntax on toggle to on.
|
||||
|
||||
2006-02-01 Andy Shevchenko <andy@pylesos.interdon.net>
|
||||
|
||||
* edit.c, editcmddef.h, editkeys.c: Add Ctrl-S to toggle syntax
|
||||
|
@ -2480,7 +2480,8 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
||||
break;
|
||||
|
||||
case CK_Toggle_Syntax:
|
||||
option_syntax_highlighting ^= 1;
|
||||
if ((option_syntax_highlighting ^= 1) == 1)
|
||||
edit_load_syntax (edit, NULL, option_syntax_type);
|
||||
edit->force |= REDRAW_PAGE;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user