diff src/layout.c @ 601:93c6dc4c537b

Add a way to invert the current selection. An item labeled "Invert selection" was added to the Select submenu in the main menu.
author zas_
date Wed, 07 May 2008 22:48:30 +0000
parents 905688aa2317
children 6e9413e92be5
line wrap: on
line diff
--- a/src/layout.c	Tue May 06 23:58:08 2008 +0000
+++ b/src/layout.c	Wed May 07 22:48:30 2008 +0000
@@ -875,6 +875,13 @@
 	if (lw->vf) vf_select_none(lw->vf);
 }
 
+void layout_select_invert(LayoutWindow *lw)
+{
+	if (!layout_valid(&lw)) return;
+
+	if (lw->vf) vf_select_invert(lw->vf);
+}
+
 void layout_mark_to_selection(LayoutWindow *lw, gint mark, MarkToSelectionMode mode)
 {
 	if (!layout_valid(&lw)) return;