fix fallthrough bug
This commit is contained in:
parent
aa568da12f
commit
7c6d8ac0e3
4
Makefile
4
Makefile
|
@ -26,6 +26,10 @@ ifeq (${CXX}, g++)
|
||||||
CXXFLAGS += -Wno-missing-field-initializers
|
CXXFLAGS += -Wno-missing-field-initializers
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq (${CXX}, clang++)
|
||||||
|
CXXFLAGS += -Wimplicit-fallthrough
|
||||||
|
endif
|
||||||
|
|
||||||
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
|
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
|
||||||
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}}
|
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}}
|
||||||
|
|
||||||
|
|
|
@ -695,6 +695,7 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
||||||
gtk_widget_show(info->panel.da);
|
gtk_widget_show(info->panel.da);
|
||||||
overlay_show(&info->panel, overlay_mode::urlselect, false);
|
overlay_show(&info->panel, overlay_mode::urlselect, false);
|
||||||
exit_command_mode(vte, &info->select);
|
exit_command_mode(vte, &info->select);
|
||||||
|
return TRUE;
|
||||||
case GDK_KEY_c:
|
case GDK_KEY_c:
|
||||||
vte_terminal_copy_clipboard(vte);
|
vte_terminal_copy_clipboard(vte);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue