1
0
forked from aniani/vim

updated for version 7.2-271

This commit is contained in:
Bram Moolenaar
2009-11-03 11:53:55 +00:00
parent 60462877cb
commit 0af561dbf2
2 changed files with 7 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
/* /*
* (C) 2001,2005 by Marcin Dalecki <martin@dalecki.de> * (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, * Note about Lesstif: Apparently lesstif doesn't get the widget layout right,
* when using a dynamic scrollbar policy. * when using a dynamic scrollbar policy.
@@ -633,16 +633,19 @@ do_choice(Widget w,
data->sel[which] = XtNewString(sel); data->sel[which] = XtNewString(sel);
else else
{ {
XtFree(data->sel[which]);
if (!strcmp(data->sel[which], sel)) if (!strcmp(data->sel[which], sel))
{ {
/* unselecting current selection */ /* unselecting current selection */
XtFree(data->sel[which]);
data->sel[which] = NULL; data->sel[which] = NULL;
if (w) if (w)
XmListDeselectItem(w, call_data->item); XmListDeselectItem(w, call_data->item);
} }
else else
{
XtFree(data->sel[which]);
data->sel[which] = XtNewString(sel); data->sel[which] = XtNewString(sel);
}
} }
XtFree(sel); XtFree(sel);

View File

@@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
271,
/**/ /**/
270, 270,
/**/ /**/