]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-271 v7.2.271
authorBram Moolenaar <Bram@vim.org>
Tue, 3 Nov 2009 11:53:55 +0000 (11:53 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 3 Nov 2009 11:53:55 +0000 (11:53 +0000)
src/gui_xmdlg.c
src/version.c

index 9ac41d7f3d06e983d13b521b647f036b11652d04..e512fe8a1ad7785221c9e80c855c04009b9683bf 100644 (file)
@@ -10,7 +10,7 @@
 /*
  * (C) 2001,2005 by Marcin Dalecki <martin@dalecki.de>
  *
- * Implementation of dialogue functions for the Motif GUI variant.
+ * Implementation of dialog functions for the Motif GUI variant.
  *
  * Note about Lesstif: Apparently lesstif doesn't get the widget layout right,
  * when using a dynamic scrollbar policy.
@@ -633,16 +633,19 @@ do_choice(Widget w,
        data->sel[which] = XtNewString(sel);
     else
     {
-       XtFree(data->sel[which]);
        if (!strcmp(data->sel[which], sel))
        {
            /* unselecting current selection */
+           XtFree(data->sel[which]);
            data->sel[which] = NULL;
            if (w)
                XmListDeselectItem(w, call_data->item);
        }
        else
+       {
+           XtFree(data->sel[which]);
            data->sel[which] = XtNewString(sel);
+       }
     }
     XtFree(sel);
 
index 3b7be7cf0cd1d6b089e15336377dc6fb7e427da7..7e6b39d90eba874063ec2816a2ecf26efd6d6dfc 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    271,
 /**/
     270,
 /**/