replace 2 lambdas with partial functions
This commit is contained in:
parent
7168c5fcc4
commit
8f3c799b01
10
termite.cc
10
termite.cc
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
#include "url_regex.h"
|
#include "url_regex.h"
|
||||||
|
|
||||||
|
using namespace std::placeholders;
|
||||||
|
|
||||||
enum class overlay_mode {
|
enum class overlay_mode {
|
||||||
hidden,
|
hidden,
|
||||||
search,
|
search,
|
||||||
|
@ -240,9 +242,7 @@ static void move_backward(VteTerminal *vte, select_info *select, F is_word) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void move_backward_word(VteTerminal *vte, select_info *select) {
|
static void move_backward_word(VteTerminal *vte, select_info *select) {
|
||||||
move_backward(vte, select, [vte](gunichar c) {
|
move_backward(vte, select, std::bind(vte_terminal_is_word_char, vte, _1));
|
||||||
return vte_terminal_is_word_char(vte, c);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void move_backward_blank_word(VteTerminal *vte, select_info *select) {
|
static void move_backward_blank_word(VteTerminal *vte, select_info *select) {
|
||||||
|
@ -296,9 +296,7 @@ static void move_forward(VteTerminal *vte, select_info *select, F is_word) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void move_forward_word(VteTerminal *vte, select_info *select) {
|
static void move_forward_word(VteTerminal *vte, select_info *select) {
|
||||||
move_forward(vte, select, [vte](gunichar c) {
|
move_forward(vte, select, std::bind(vte_terminal_is_word_char, vte, _1));
|
||||||
return vte_terminal_is_word_char(vte, c);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void move_forward_blank_word(VteTerminal *vte, select_info *select) {
|
static void move_forward_blank_word(VteTerminal *vte, select_info *select) {
|
||||||
|
|
Loading…
Reference in New Issue