| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-12-20 | buffer: implement buffer_capacity utility function | Marc André Tanner | 2 | -0/+6 | |
| 2016-12-20 | buffer: implement buffer_appendf to append formatted content | Marc André Tanner | 2 | -15/+26 | |
| 2016-12-20 | buffer: fix error case in buffer_append0 | Marc André Tanner | 1 | -3/+6 | |
| Do not change buffer length when failing to append. | |||||
| 2016-12-19 | vis-lua: implement vis.registers[] array | Marc André Tanner | 1 | -1/+58 | |
| Notice that currently only single letter register names/array indices are supported. Register handling needs to be cleaned up at some point. | |||||
| 2016-12-19 | vis: introduce vis_register_from utility function | Marc André Tanner | 3 | -37/+37 | |
| 2016-12-19 | vis-lua: simplify obj_ref_new error handling | Marc André Tanner | 1 | -10/+9 | |
| 2016-12-19 | vis-lua: simplify object reference checking | Marc André Tanner | 1 | -163/+58 | |
| Make obj_ref_check handle invalid object references. The luaL_argerror function throws a Lua error and never returns, hence all return value checks become obsolete. | |||||
| 2016-12-19 | vis-lua: implement file.marks[] array | Marc André Tanner | 1 | -0/+65 | |
| We need to retrieve a pointer to the File struct but can not store it directly in the Lua uservalue because the address is already used for the regular file object (of type vis.file). For now we use file->marks as an address and then use offsetof to retrieve the start of the struct. | |||||
| 2016-12-19 | vis-lua: implement file:mark_{get,set} | Marc André Tanner | 1 | -0/+38 | |
| 2016-12-17 | test: update | Marc André Tanner | 1 | -5/+5 | |
| 2016-12-17 | vis: allow boolean :set options to be toggled | Marc André Tanner | 2 | -13/+32 | |
| Boolean options can be toggled by appending `!` to the option name. Close #435 | |||||
| 2016-12-17 | vis: always remove consumed keys from input queue | Marc André Tanner | 1 | -3/+3 | |
| When given a mapping like: :map! insert >> ><>x> whose end is a prefix of another mapping we should still remove all already consumed keys from the input queue. Fixes #436 | |||||
| 2016-12-16 | travis: try to enable code coverage for test/core | Marc André Tanner | 1 | -1/+1 | |
| 2016-12-16 | build: update unused make standalone/local Lua reference to 5.3.3 | Marc André Tanner | 1 | -2/+2 | |
| 2016-12-16 | vis: process keys following an unmatched prefix individually | Marc André Tanner | 1 | -1/+3 | |
| Fixes #434 | |||||
| 2016-12-16 | vis: add section about compile time configuration to :help output | Marc André Tanner | 1 | -0/+15 | |
| 2016-12-15 | build: move $CFLAGS_DEBUG into config.mk | Marc André Tanner | 2 | -9/+6 | |
| This allows inclusion in other Makefiles (e.g. for C unit tests). | |||||
| 2016-12-15 | vis: always store registers values NUL terminated | Marc André Tanner | 1 | -4/+6 | |
| Previously we only made sure that the register content is NUL terminated when reading it out. This made it impossible to distinguish between an empty register and one which stores a single NUL byte. Now the in memory representation of a non-empty register is always NUL terminated. When appending we temporarily remove the trailing NUL byte and restore it later. This should fix put commands of a previously yanked single NUL byte. | |||||
| 2016-12-15 | vis: respect terminating NUL bytes in the input queue | Marc André Tanner | 1 | -1/+1 | |
| It can happen that the Buffer content used for the input queue becomes <\000> where the NUL byte is intended to terminate the queue, but termkey happily parses it and because it is delimited by < and > on both sides we then interpret it as a key. In input mode this leads to the insertion of a NUL byte which is displayed as ^@. Close #432 | |||||
| 2016-12-15 | vis: more informative error message for :set option | Josh Wainwright | 1 | -1/+1 | |
| Close #433 | |||||
| 2016-12-14 | lua: make sure we always load a default theme | Marc André Tanner | 2 | -1/+2 | |
| 2016-12-14 | lua: improve error message when failing to load lpeg/lexer module | Marc André Tanner | 2 | -9/+22 | |
| Differentiate between the case where the module is not found and the case where an error occured while loading it. This should make it easier to debug cases in which there is a Lua version mismatch between vis and lpeg. | |||||
| 2016-12-14 | vis: remove useless NULL check | Marc André Tanner | 1 | -1/+1 | |
| The very first thing we do if that check is false, is return from the function. | |||||
| 2016-12-14 | build: improve description of --enable-lpeg configure option | Marc André Tanner | 1 | -1/+1 | |
| It links lpeg statically into the vis binary, meaning it does not need to be dlopen(3)-ed at runtime. While this improves the portability of the resulting vis binary, it is not necessary to enable this option to get syntax highlighting support. Maybe the option should be renamed to avoid further confusion. | |||||
| 2016-12-14 | lua: avoid errors if no theme is set | Marc André Tanner | 1 | -7/+7 | |
| Close #429 | |||||
| 2016-12-14 | lua: add crontab file type and configure it to save in-place | Marc André Tanner | 1 | -0/+4 | |
| This should fix isses with `crontab -e` editing. | |||||
| 2016-12-14 | lua: allow per file type :commands being executed | Marc André Tanner | 1 | -3/+11 | |
| 2016-12-14 | lua: use Lua patterns to match file extensions | Marc André Tanner | 1 | -125/+120 | |
| 2016-12-14 | vis: add new :set savemethod auto|atomic|inplace option | Marc André Tanner | 4 | -2/+38 | |
| Specifies how the current file should be saved, `atomic` which uses rename(2) to atomically replace the file, `inplace` which truncates the file and then rewrites it or `auto` which tries the former before falling back to the latter. The rename method fails for symlinks, hardlinks, in case of insufficient directory permissions or when either the file owner, group, POSIX ACL or SELinux labels can not be restored. The option defaults to `auto`. | |||||
| 2016-12-14 | text: expose text save method to calling code | Marc André Tanner | 3 | -11/+13 | |
| There are cases where it is useful to specify how the file should be saved. | |||||
| 2016-12-13 | build: fix Cygwin build | Marc André Tanner | 1 | -1/+2 | |
| The simple method lpeg uses to create a shared library does not seem to work in Cygwin. | |||||
| 2016-12-13 | man: avoid standard directives which are undefined for some groff versions | Marc André Tanner | 1 | -2/+2 | |
| This fixes a warning when displaying the manual page on macOS systems. | |||||
| 2016-12-13 | build: remove internal configure options from help text | Marc André Tanner | 1 | -2/+0 | |
| These are used by `make standalone` but are not really appropriate for normal usage and just cause confusion as demonstrated by #373. | |||||
| 2016-12-13 | build: add configure options for built-in lpeg support | Marc André Tanner | 4 | -19/+68 | |
| 2016-12-12 | Allow building lpeg into vis | Michael Forney | 2 | -0/+11 | |
| If lpeg is built statically, this allows for a completely static vis binary that still supports syntax highlighting. | |||||
| 2016-12-09 | Remove useless variable assignment | Marc André Tanner | 1 | -1/+0 | |
| Fixes CID 139067. | |||||
| 2016-12-09 | vis-lua: add generic way to expose C text objects to Lua | Marc André Tanner | 1 | -1/+41 | |
| Expose text_object_word as an example. | |||||
| 2016-12-09 | man: fix mistakes | Marc André Tanner | 1 | -6/+13 | |
| 2016-12-09 | vis-lua: add comment about possibly outdated Lua API documentation | Marc André Tanner | 2 | -1/+3 | |
| 2016-12-09 | lua: add more mime types for file type detection | Marc André Tanner | 1 | -0/+21 | |
| 2016-12-09 | vis-lua: expose input key event in insert and replace modes | Marc André Tanner | 6 | -1/+53 | |
| 2016-12-08 | vis: rename some internal C function pointers | Marc André Tanner | 3 | -14/+12 | |
| 2016-12-08 | build: include Lua files in windows zip | Marc André Tanner | 1 | -1/+1 | |
| 2016-12-08 | Update tests to changes in Lua API | Marc André Tanner | 1 | -12/+5 | |
| 2016-12-08 | vis-lua: only fail file_save_pre event if explicitly returned false | Marc André Tanner | 1 | -1/+1 | |
| Previously we would also interpret a missing return value `nil` as is the case when no pre save event handler is subscribed as failure. | |||||
| 2016-12-08 | Move manual pages to man/ subfolder | Marc André Tanner | 5 | -3/+3 | |
| 2016-12-08 | vis-lua: move mode constants from vis.MODE_* to vis.modes.* | Marc André Tanner | 3 | -44/+44 | |
| 2016-12-08 | vis-lua: add optional help parameter to mapping functions | Marc André Tanner | 3 | -12/+18 | |
| 2016-12-08 | vis-lua: expose init event and use it to set default theme | Marc André Tanner | 4 | -6/+15 | |
| The init event is emitted immediately after `visrc.lua` has been sourced, but before any other events have occured, in particular the command line arguments have not yet been processed. Close #422 | |||||
| 2016-12-08 | lua: add simple event multiplexing mechanism | Marc André Tanner | 6 | -24/+121 | |
| The editor core calls into the functions registered in the `vis.events` table which then multiplex the events to all registered event handlers. The first handler which returns a non `nil` value terminates event propagation. | |||||
