summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-07ui: improve color palette resetMarc André Tanner
Do not restore color palette for :! commands (i.e. in ui_terminal_save). By far the most common use of this is to invoke vis-menu(1) (e.g. indirectly through `:open .` or for word completion). Restoring the palette in this case also affects the file content still being visible above the menu thus causing weird display artifacts. Use the OSC 104 escape sequence to reset color palette. This should respect custom color profiles.
2017-01-06vis: simplify mode lookup for :map and :unmapMarc André Tanner
2017-01-05test: updateMarc André Tanner
2017-01-05Merge branch 'musl' of https://github.com/eworm-de/visMarc André Tanner
2017-01-05lua: adjust C lexer to recognize POSIX typesS. Gilles
2017-01-05ui: remove now unused codeMarc André Tanner
2017-01-05theme: pretend that specifying color numbers doesn't workS. Gilles
2017-01-05ui: replace lookup tables with algorithmS. Gilles
The algorithm for computing the [16,256) range of the `standard' 256 colors comes from 256colors.pl from XFree86's xterm tree, which appears to have given rise to the standard colors.
2017-01-05ui: Turn palette on/off when saving/restoring terminalS. Gilles
2017-01-04standalone: update to musl version 1.1.16Christian Hesse
This release fixes a serious under-allocation bug in regexec due to integer overflow (CVE-2016-8859) and related issues. http://www.openwall.com/lists/musl/2017/01/03/1
2017-01-01ui: use accurate colors when availableS. Gilles
When ncurses reports can_change_color(), have color_find_rgb() define use the exact color requested by modifying ncurses' current palette. Make an honest effort at restoring this palette on shutdown, though we can't be positive it's correct.
2017-01-01ui: move color_from_256 to file scopeS. Gilles
2016-12-31vis: allow user registered :-commands to specify a help textMarc André Tanner
2016-12-31vis: typedef function type not pointer to functionMarc André Tanner
2016-12-31sam: use buffer_move where appropriateMarc André Tanner
2016-12-31buffer: implement buffer_moveMarc André Tanner
2016-12-30test: updateMarc André Tanner
2016-12-30sam: execute X and Y commands only once not for every selectionMarc André Tanner
2016-12-30sam: change write command implementation to not change argv[]Marc André Tanner
The same Command struct might be used for multiple command executions. An example is `:X wq` which is roughly equivalent to `:wqa` in vim.
2016-12-30sam: explicitly pass invalid range for X and Y commandsMarc André Tanner
These are never used because there is always an implicit select command prepended.
2016-12-30sam: use more expressive name for select commandMarc André Tanner
This is not really used, but commands can expect to have argv[0] set to something. Also "s" is ambigious with the substitute command.
2016-12-29Add rc lexerMichael Forney
2016-12-29vis-lua: allow vis:map to set up key aliases and actionsMarc André Tanner
2016-12-29vis-lua: introduce vis:action_registerMarc André Tanner
2016-12-29vis: cleanup key action lifetime managementMarc André Tanner
2016-12-29vis-lua: simplify lua function reference handlingMarc André Tanner
2016-12-29vis-lua: luaL_checkstring already checks for NULL return valueMarc André Tanner
2016-12-29test: updateMarc André Tanner
2016-12-29vis: unmap all conflicting bindings of a forced map commandMarc André Tanner
2016-12-29map: implement map_prefix_deleteMarc André Tanner
2016-12-29map: implement map_firstMarc André Tanner
2016-12-28vis: do not free right hand side of mapping twiceMarc André Tanner
Fix #447
2016-12-28build: use latest Lua 5.3.x for make local and standalone buildsMarc André Tanner
2016-12-27build: update libtermkey to version 0.19Marc André Tanner
Close #445
2016-12-27vis: properly free dynamic key bindingsMarc André Tanner
The handling of :unmap needs to be revisited at some point.
2016-12-27array: implement array_removeMarc André Tanner
2016-12-27travis: install 9baseMarc André Tanner
This should enable sam related tests for Linux builds.
2016-12-27build: configure ncurses with --disable-leaksMarc André Tanner
Makes analysis with valgrind easier.
2016-12-27build: pass $CFLAGS_EXTRA through make debug targetMarc André Tanner
2016-12-26fix help text for next/prev matchErlend Fagerheim
2016-12-23text-objects: explicitly ignore return value of strtoll(3)Marc André Tanner
We are only interested in the first invalid character.
2016-12-23Apply format string attribute to printf style functionsMarc André Tanner
Not strictly C99 conform, but widely supported and easy enough to NOP for compilers which do not support it. Besides it was already used to mark certain functions as noreturn.
2016-12-23text: make text_vprintf static, it is only used within text.cMarc André Tanner
2016-12-22text: remove Filepos typedefMarc André Tanner
The idea might be good, but it was almost unused.
2016-12-22text: introduce EMARK to denote an invalid markMarc André Tanner
Technically this macro name is in the reserved namespace of errno.h. The same is true for EPOS. Maybe we should rename them at some point, but for now the short names are convenient. Fix #443 Close #444
2016-12-22test: updateMarc André Tanner
2016-12-22vis-lua: store Vis context in upvalues where neededMarc André Tanner
2016-12-22text: change datatype of Mark to uintptr_tMarc André Tanner
This should avoid undefined pointer comparisons.
2016-12-22text: make default block size overridable via C pre-processorMarc André Tanner
This will be used for unit test purposes to force more allocations.
2016-12-22buffer: make default buffer size overridable via C pre-processorMarc André Tanner