move #define to the top
This commit is contained in:
parent
284e170321
commit
124979d812
|
@ -12,6 +12,8 @@
|
||||||
# define __attribute__(x)
|
# define __attribute__(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define CSI "\x1b["
|
||||||
|
|
||||||
static const char * const url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+()]*";
|
static const char * const url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+()]*";
|
||||||
|
|
||||||
typedef enum overlay_mode {
|
typedef enum overlay_mode {
|
||||||
|
@ -90,8 +92,6 @@ static void update_selection(VteTerminal *vte, select_info *select) {
|
||||||
vte_terminal_copy_primary(vte);
|
vte_terminal_copy_primary(vte);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CSI "\x1b["
|
|
||||||
|
|
||||||
static void start_selection(VteTerminal *vte, select_info *select) {
|
static void start_selection(VteTerminal *vte, select_info *select) {
|
||||||
vte_terminal_feed(vte, CSI "s", strlen(CSI "s")); // save cursor position
|
vte_terminal_feed(vte, CSI "s", strlen(CSI "s")); // save cursor position
|
||||||
select->mode = SELECT_ON;
|
select->mode = SELECT_ON;
|
||||||
|
|
Loading…
Reference in New Issue