diff --git a/src/ChangeLog b/src/ChangeLog index 283f3fb4201..2a0ad325f6d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -6,6 +6,8 @@ * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:): Display all shortcuts, including those w/o super modifier. + * nsfns.m (ns-read-file-name): Fix typo in assignment statement. + 2009-01-22 Chong Yidong * fileio.c (Vwrite_region_post_annotation_function) diff --git a/src/nsfns.m b/src/nsfns.m index 6e1c6c05aa2..aee371efc89 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -1494,7 +1494,7 @@ Optional arg INIT, if non-nil, provides a default file name to use. */) ret = [panel runModalForDirectory: dirS file: initS types: nil]; } - ret = (ret = NSOKButton) || panelOK; + ret = (ret == NSOKButton) || panelOK; fname = [panel filename];