diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-20 15:29:03 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-20 15:29:03 -0400 |
commit | 03c4016d07477781aa3adcc9edf340c0bec9c6c8 (patch) | |
tree | d3be089e9020807326a4e56562876ecb7bcf7892 /core/assert.lua | |
parent | b682fbd4a6e53185e2556686079532ad0e42be94 (diff) |
Code cleanup.
Of note:
* io.save_all_files() does not visit each buffer to save anymore. An unintended
side-effect was checking for outside modification (but only if the file itself
was modified), so outside changes will always be saved over now.
* The menu clicked handler uses assert_type(), so the 'Unknown command'
localization is no longer needed.
* When printing to a new buffer type would split the view, use an existing split
view when possible.
* Prefer 'goto continue' construct in loops over nested 'if's.
* Fixed clearing of ui.find.replace_entry_text on reset in the GUI version.
* Fixed lack of statusbar updating when setting options like buffer EOL mode,
indentation, and encoding.
* Renamed internal new_snippet() to new() and put it in the snippet metatable.
Diffstat (limited to 'core/assert.lua')
-rw-r--r-- | core/assert.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/assert.lua b/core/assert.lua index baa08d5b..80e50a6e 100644 --- a/core/assert.lua +++ b/core/assert.lua @@ -31,7 +31,7 @@ end -- This is intended to be used with API function arguments so users receive more -- helpful error messages. -- @param v Value to assert the type of. --- @param expected_type String type to assert. It may be a punctuation-delimited +-- @param expected_type String type to assert. It may be a non-letter-delimited -- list of type options. -- @param narg The positional argument number *v* is associated with. This is -- not required to be a number. |