| 371 | } |
| 372 | |
| 373 | void restore() |
| 374 | { |
| 375 | copystring(cmdline.buf, buf); |
| 376 | if(cmdline.pos >= (int)strlen(cmdline.buf)) cmdline.pos = -1; |
| 377 | DELETEA(cmdaction); |
| 378 | DELETEA(cmdprompt); |
| 379 | if(action) cmdaction = newstring(action); |
| 380 | if(prompt) cmdprompt = newstring(prompt); |
| 381 | storeinputcommand = false; |
| 382 | } |
| 383 | |
| 384 | bool shouldsave() |
| 385 | { |
no test coverage detected