| Age | Commit message (Collapse) | Author |
|
|
|
In ncurses 6.1, the TERMINAL structure was updated[0] to store data in `int`
instead of `short`, and terminfo definitions for 256-color terminals were
updated from `pairs#32767` to `pairs#0x10000`.
However, since vis stores the value of COLOR_PAIRS in a short (ncurses
internally stores it as an int), it is now overflowing into negative, breaking
color support completely.
The standard `init_pair` entry points still use `short` for their parameters, so
just restrict the pairs to `SHRT_MAX` during allocation.
[0] http://invisible-island.net/ncurses/announce-6.1.html#h4-new-library
|
|
|
|
* fix character literals (#\" no longer quotes the entire file etc.)
* properly nest block comments and support simplified datum comment
* add r7rs keywords, functions and directives
* fix identifiers
- pipes were not recognized as delimiters
- some valid identifiers were not recognized
- some were partially parsed as keywords
- quoting only worked on plain alphanumeric identifiers
* fix numbers (some valid numbers were not recognised)
* dont parse boolean constants as functions
|
|
|
|
text_object_word() was only sending the last part of a pathname to
vis-complete.
text_object_longword() is better, but sometimes may send a bit too much,
so leading delimiters for some languages are stripped additionally.
|
|
The previous commit would generate duplicate entries when files with the
same name exist in more than one directory.
|
|
|
|
Move the "case $PATTERN" block inside "if $COMPLETE_WORD" to make it
clear that it is specific only to the "else" branch.
Eliminate the $START variable - it was used only once, and using
dirname(1) directly is obvious enough.
Remove the comments inside the "case" block (explaining the "what") and
replaced them with a single comment explaining the "why".
|
|
|
|
This keeps the existing testing infrastructure, which pipes newline
separated commands to stdin, working.
|
|
Fix #656
|
|
|
|
Fix #607
|
|
Close #655
|
|
|
|
|
|
This allows to end PHP code sections. Otherwise token is treated as part of the comment and parser continues to parse whatever is after.
|
|
The color settings are currently stored in the `vis.lexers` table,
make sure it is not nil even when loading the lexer module (or one
of its dependencies e.g. lpeg) failed.
|
|
|
|
|
|
At the command prompt, commands were not recognized properly when the
cursor was placed on a delimiting character (:, ?, /) while pressing
enter.
Fix #653
|
|
When the shell cannot find any matching files, the glob is not expanded,
and vis-open will return the absolute path of the current working
directory (because dirname outputs '.'), followed by the filename,
followed by a literal '*'. This commit checks that the final path
actually exists, and if not, exits with status 1.
It also uses text_object_longword for the range to match, so that
absolute paths are accepted, and replaced properly (else it only works
back to the first '/').
|
|
|
|
Fix #644
|
|
Correctly handle single letter words surrounded by special symbols, e.g. [c].
Fix #643
|
|
|
|
When the fore and background colors are the same, swapping them has
no effect. Instead use the specified cell attributes. Previously the
CELL_ATTR_REVERSE used in the default selection style was ignored.
In general the default style definitions for non-Lua builds could
probably be improved further.
Fix #635
|
|
This should allow the :-command prompt to be closed with <C-c><C-c>
(from insert mode) or <C-c> (from normal mode).
Fix #608
|
|
|
|
Fix #636
|
|
|
|
|
|
This for example skips the command prompt window.
|
|
|
|
Previously `ci<` would have no immediate effect because in operator
pending mode `i<` was wrongly treated as a powwible prefix of `i<Tab>`.
Fix #624
|
|
Fix #622
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This should have been part of 4715eb3178d62f3527ae2c24092bf0c109bb570b.
|
|
Use visual mode and :| to filter text through external commands.
The mapping was already reused for selection complement.
|
|
|
|
Both VB and LaTex use .cls file extensions. It should be a much more
reasonable default to assume LaTex syntax.
|
|
As noted on mdoc(7), in groff "Lk only accepts a single link-name argument; the remainder is misformatted.
The quotes makes groff treat the title as a single argument.
|
|
Pressing Ctrl+\ should probably not terminate the editor.
In previous versions libtermkey would disable signal
generation by disabling termios VQUIT. However, curses
probably overrides it when they both fight for terminal
settings. This should probably be cleaned up at some point.
Ignoring SIGQUIT seems like a good idea anyway.
|
|
|