@@ -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;