From 575fb8bdb4033a74f874948a2e533cf534eda6ad Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Thu, 22 Jan 2009 13:31:54 +0000 Subject: [PATCH] * nsfns.m (ns-read-file-name): Fix typo in assignment statement. --- src/ChangeLog | 2 ++ src/nsfns.m | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.39.2