replace lambda with std::not1
This commit is contained in:
		
							parent
							
								
									daa394d88a
								
							
						
					
					
						commit
						8073df7dfe
					
				| @ -1,6 +1,7 @@ | |||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cstdlib> | #include <cstdlib> | ||||||
| #include <cstring> | #include <cstring> | ||||||
|  | #include <functional> | ||||||
| #include <limits> | #include <limits> | ||||||
| 
 | 
 | ||||||
| #include <gdk/gdkx.h> | #include <gdk/gdkx.h> | ||||||
| @ -301,9 +302,7 @@ static void move_forward_word(VteTerminal *vte, select_info *select) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static void move_forward_blank_word(VteTerminal *vte, select_info *select) { | static void move_forward_blank_word(VteTerminal *vte, select_info *select) { | ||||||
|     move_forward(vte, select, [](gunichar c) { |     move_forward(vte, select, std::not1(std::ref(g_unichar_isspace))); | ||||||
|         return !g_unichar_isspace(c); |  | ||||||
|     }); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static void set_cursor_column(VteTerminal *vte, const select_info *select, long column) { | static void set_cursor_column(VteTerminal *vte, const select_info *select, long column) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Micay
						Daniel Micay