diff src/symtab.h @ 9355:5e4da3b3747e

fix context restoration in error state
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 16 Jun 2009 09:49:25 +0200
parents 73e36b147e45
children 17af7cce7d1b 650a5bbc07a8
line wrap: on
line diff
--- a/src/symtab.h	Mon Jun 15 11:39:46 2009 -0400
+++ b/src/symtab.h	Tue Jun 16 09:49:25 2009 +0200
@@ -939,11 +939,12 @@
 		instance = p->second;
 
 		xcurrent_scope = scope;
+
+                xcurrent_context = context;
 	      }
 	  }
-
-	if (! error_state)
-	  xcurrent_context = context;
+        else
+          xcurrent_context = context;
       }
   }