summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-23Cast argument to ctype.h is* functions to unsigned charMarc André Tanner
The signedness of char is implemenation defined, calling the is* type of functions with negative values leads to undefined behaviour.
2015-11-23vis: improve replacement of combining charactersMarc André Tanner
2015-11-23view: fix cell placement of combining charactersMarc André Tanner
They now belong to the cell holding the corresponding regular (i.e. non-combining) character. This also means that at least in theory a cell could hold arbitrary amounts of data, in practice it is limited to 16 bytes.
2015-11-23text: introduce functions to iterate over graphemesMarc André Tanner
They currently consider any character for which wcwidth(3) return 0 as a combining character.
2015-11-20buffer: tweak memory allocation strategyMarc André Tanner
Do not simply double the requested size. Instead take the maximum of - the requested size - double the current buffer size This will use less memory for large register operations (e.g. deleting the whole file).
2015-11-20text: get modification time after replacing file content in placeMarc André Tanner
At the start of text_save_range we stat(2) the file to check whether we have currently mmap(2)-ed it. Then we proceed to write the new file content which changes modification time. Hence we have to stat(2) again to retrieve it. This should fix spurious warnings about file changes outside the editor when editing e.g. symlinked files.
2015-11-19vis: improve <C-p> in visual modeMarc André Tanner
Make sure that the (new) primary cursor is visible after removing the last matched selection.
2015-11-19vis: fix <C-n> in visual mode for partial matchesMarc André Tanner
We need to properly skip partial matches (i.e. not whole words). Closes #118
2015-11-19buffer: add some comments to clarify allocation strategyMarc André Tanner
Closes #116
2015-11-17vis: put in visual mode should replace the current selectionMarc André Tanner
There are some combinations (e.g. line wise selection / character wise register content) which should probably be improved further. Also since vis currently neither supports the numbered registers "0 - "9 nor the small delete register "- the deleted text is not stored in any register. Notice that we can't call op_delete in the implementation because it would overwrite the register content we want to paste. Closes #113
2015-11-17ui: improve fallback code in case of unknown termMarc André Tanner
If the current $TERM value indicates 256 color support fall back to xterm-256color otherwise try xterm. Improves upon 43605fded457cec954600b688d54242341eedc7c Closes #105
2015-11-14view: increase range to consider for syntax highlightingDavid B. Lamkins
Increase the number of bytes to consider for syntax highligthing before the visisble area. This should improve the handling of long block comments. Closes #110
2015-11-13lexer: improve pure lexerDavid B. Lamkins
Closes #109
2015-11-11ui: fall back to xterm-256color if term initialization failsMarc André Tanner
This improves behaviour for unknwown/unrecognized terminals as is the case for self contained binaries built with "make standalone" which only includes a fixed set of terminal descriptions. Of course the terminal capabilities won't match, which will likely cause some display issues.
2015-11-11lexer: add lexer for pureDavid B. Lamkins
Ref: http://purelang.bitbucket.org/ Closes #106
2015-11-10build: do not clutter dependency/install with manual pagesMarc André Tanner
2015-11-10Update .gitignoreMarc André Tanner
Closes #104
2015-11-10lexer: fix some more color specificationsMarc André Tanner
2015-11-10build: try to fix make standalone for multiarch systemsMarc André Tanner
Force ncurses libdir to be /usr/lib not /usr/lib64.
2015-11-10lexers: fix color specification in diff lexerDavid B. Lamkins
Closes #102
2015-11-09view: improve window redrawing for shared files/split windowsMarc André Tanner
When a file was being displayed in multiple windows changes in one could confuse the other.
2015-11-09view: correctly redraw window contentMarc André Tanner
If a change occured on the very first shown character, it was not properly reflected in the view.
2015-11-08ui: warn if theme loading failedMarc André Tanner
2015-11-08Clarify build dependencies in READMEMarc André Tanner
2015-11-08Fix warnings found by static analyzerMarc André Tanner
2015-11-08Mention make local in READMEMarc André Tanner
2015-11-08Update year numbers in Copyright clauseMarc André Tanner
2015-11-08Remove trailing white space from source filesMarc André Tanner
2015-11-08Mention new source files in READMEMarc André Tanner
2015-11-08Delete now obsolete syntax.hMarc André Tanner
2015-11-08vis: map <F1> to :helpMarc André Tanner
2015-11-08vis: reindent config.def.h (no functional changes)Marc André Tanner
2015-11-08Tweak manual pageMarc André Tanner
2015-11-08view: do not highlight matching symbols if selection is activeMarc André Tanner
2015-11-08ui: try to make sure that selected text is still visibleMarc André Tanner
2015-11-08theme: updated low color themeMarc André Tanner
2015-11-08theme: add default low color themeMarc André Tanner
The theme was contributed by David B. Lamkins
2015-11-08ui: load syntax theme based on the number of supported colorsMarc André Tanner
The theme to use can be overriden via the $VIS_THEME environment variable. $ VIS_THEME=solarized vis
2015-11-08vis: introduce vis namespace for lua objectsMarc André Tanner
For now the vis table has only one member "lexers".
2015-11-08build: add VIS_PATH=. to suggested execution after make localMarc André Tanner
2015-11-08build: explicitly link againgst dlMarc André Tanner
For musl this is a nop, it contains the relevant code in libc and provides and empty libdl archive for compatibility. However certain glibc based system need it.
2015-11-08lexer: add ledger lexerCharles Lehner
2015-11-08theme: increase contrast by setting background color to blackMarc André Tanner
2015-11-08lexer: new lexer for man/roff formatDavid B. Lamkins
2015-11-08lexer: new APL lexerDavid B. Lamkins
2015-11-08vis: try to support all lua versions >= 5.1Marc André Tanner
Make lpeg module table explicitly global, which should work with the different module loading semantics.
2015-11-08vis: implement :set colorcolumnMarc André Tanner
2015-11-08ui: make default selection visibleMarc André Tanner
2015-11-08Add lexer specific README fileMarc André Tanner
2015-11-08travis: try to fix build by using local built dependenciesMarc André Tanner