Commit graph

6 commits

Author SHA1 Message Date
Felicity Tarnell
c0df452c04 Provide error for invalid number in c_set(). 2014-03-08 11:37:52 +00:00
Felicity Tarnell
a5dd2e4ae5 Fix crash on executing unknown command. 2014-03-08 11:31:08 +00:00
Felicity Tarnell
bf84f9a054 Fix memory leak when re-setting variable. 2014-03-08 11:29:01 +00:00
Felicity Tarnell
003ac6cca4 Always use wide characters. 2014-03-08 00:30:40 +00:00
Felicity Tarnell
3440a87ea3 Add macro support.
Replace WGETCH() with input_char(), which works the same except it supports an
input buffer.  Calling input_macro(s) sets the input buffer to 's'.  The input
buffer is returned by input_char() as if it had been typed by the user.

If an error occurs (cmderr()), the input buffer is cleared.
2014-03-07 23:34:06 +00:00
Felicity Tarnell
332fdba0bd Source refactoring; no functional changes. 2014-03-07 17:43:41 +00:00