mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Changed the "feedback count" command to return the feedback count
as a Tcl int object instead of printing out a text message, per the suggestion from Dan Moore.
This commit is contained in:
@@ -370,7 +370,11 @@ CmdFeedback(w, cmd)
|
||||
|
||||
case COUNT:
|
||||
if (cmd->tx_argc != 2) goto badusage;
|
||||
#ifdef MAGIC_WRAPPER
|
||||
Tcl_SetObjResult(magicinterp, Tcl_NewIntObj(DBWFeedbackCount));
|
||||
#else
|
||||
TxPrintf("There are %d feedback areas.\n", DBWFeedbackCount);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case FIND:
|
||||
|
||||
Reference in New Issue
Block a user