mirror of https://github.com/MidnightCommander/mc
* edit/Makefile.in: Make edit.o depend on edit_key_translator.c.
* edit/edit_key_translator.c (cooledit_key_map): Add support for bracket matching on Alt-B. * gtkedit/gtkeditkey.c: Likewise. From Steef Boerrigter <sxmboer@sci.kun.nl>
This commit is contained in:
parent
13959da45a
commit
0c08ee1fdd
|
@ -1,3 +1,11 @@
|
|||
2001-07-10 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit/Makefile.in: Make edit.o depend on edit_key_translator.c.
|
||||
* edit/edit_key_translator.c (cooledit_key_map): Add support
|
||||
for bracket matching on Alt-B.
|
||||
* gtkedit/gtkeditkey.c: Likewise.
|
||||
From Steef Boerrigter <sxmboer@sci.kun.nl>
|
||||
|
||||
2001-07-06 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* lib/mc.ext.in: Use nm to view object files.
|
||||
|
|
|
@ -39,6 +39,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|||
.c.o:
|
||||
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DMIDNIGHT $<
|
||||
|
||||
edit.o: edit_key_translator.c
|
||||
|
||||
check:
|
||||
@echo no tests are supplied.
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
KEY_F (4), CK_Replace, KEY_F (7), CK_Find, KEY_F (14), CK_Replace_Again,
|
||||
XCTRL ('h'), CK_BackSpace, ALT ('l'), CK_Goto, ALT ('L'), CK_Goto, XCTRL ('y'), CK_Delete_Line,
|
||||
KEY_F (17), CK_Find_Again, ALT ('p'), CK_Paragraph_Format,
|
||||
ALT ('b'), CK_Match_Bracket,
|
||||
0177, CK_BackSpace,
|
||||
0, 0};
|
||||
|
||||
|
|
|
@ -175,6 +175,10 @@ int edit_translate_key (unsigned int x_keycode, long x_key, int x_state, int *cm
|
|||
case GDK_L:
|
||||
command = CK_Goto;
|
||||
goto fin;
|
||||
case GDK_b:
|
||||
case GDK_B:
|
||||
command = CK_Match_Bracket;
|
||||
goto fin;
|
||||
case GDK_Insert:
|
||||
case GDK_KP_Insert:
|
||||
command = CK_Selection_History;
|
||||
|
|
Loading…
Reference in New Issue