mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-01 13:45:29 +03:00
edit/edit.c, edit/editcmddef.h, edit/editkeys.c: Add Ctrl-S to toggle syntax
highlighting.
This commit is contained in:
parent
d3ce4129e0
commit
17108c8b2e
@ -1,3 +1,8 @@
|
||||
2006-02-01 Andy Shevchenko <andy@pylesos.interdon.net>
|
||||
|
||||
* edit.c, editcmddef.h, editkeys.c: Add Ctrl-S to toggle syntax
|
||||
highlighting. Patch from unnamed MPlayer developer.
|
||||
|
||||
2006-01-30 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* editcmd.c: Do not set the field `histname' of `QuickWidget'
|
||||
|
@ -2479,6 +2479,11 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
||||
edit_insert_file_cmd (edit);
|
||||
break;
|
||||
|
||||
case CK_Toggle_Syntax:
|
||||
option_syntax_highlighting ^= 1;
|
||||
edit->force |= REDRAW_PAGE;
|
||||
break;
|
||||
|
||||
case CK_Find:
|
||||
edit_search_cmd (edit, 0);
|
||||
break;
|
||||
|
@ -108,6 +108,8 @@
|
||||
#define CK_Check_Save_And_Quit 457
|
||||
#define CK_Maximize 458
|
||||
|
||||
#define CK_Toggle_Syntax 480
|
||||
|
||||
/* macro */
|
||||
#define CK_Begin_Record_Macro 501
|
||||
#define CK_End_Record_Macro 502
|
||||
|
@ -112,6 +112,7 @@ static const edit_key_map_type common_key_map[] = {
|
||||
{ XCTRL ('k'), CK_Delete_To_Line_End },
|
||||
{ XCTRL ('l'), CK_Refresh },
|
||||
{ XCTRL ('o'), CK_Shell },
|
||||
{ XCTRL ('s'), CK_Toggle_Syntax },
|
||||
{ XCTRL ('u'), CK_Undo },
|
||||
{ XCTRL ('t'), CK_Select_Codepage },
|
||||
{ XCTRL ('q'), CK_Insert_Literal },
|
||||
|
Loading…
x
Reference in New Issue
Block a user