File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -565,10 +565,7 @@ static int pushline (lua_State *L, int firstline) {
565565 l = strlen (b );
566566 if (l > 0 && b [l - 1 ] == '\n' ) /* line ends with newline? */
567567 b [-- l ] = '\0' ; /* remove it */
568- if (firstline && b [0 ] == '=' ) /* for compatibility with 5.2, ... */
569- lua_pushfstring (L , "return %s" , b + 1 ); /* change '=' to 'return' */
570- else
571- lua_pushlstring (L , b , l );
568+ lua_pushlstring (L , b , l );
572569 lua_freeline (b );
573570 return 1 ;
574571}
Original file line number Diff line number Diff line change 345345RUN ([[ lua -e"_PROMPT='' _PROMPT2=''" -i < %s > %s]] , prog , out )
346346checkprogout (" 6\n 10\n 10\n\n " )
347347
348- prepfile (" a = [[b\n c\n d\n e]]\n =a " )
348+ prepfile (" a = [[b\n c\n d\n e]]\n a " )
349349RUN ([[ lua -e"_PROMPT='' _PROMPT2=''" -i < %s > %s]] , prog , out )
350350checkprogout (" b\n c\n d\n e\n\n " )
351351
You can’t perform that action at this time.
0 commit comments