aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-15test: updateMarc André Tanner1-5/+5
This will most likely break macOS travis builds.
2017-02-15vis: use single function call to print version informationMarc André Tanner1-12/+6
This results in a slightly smaller binary while still avoiding #ifdefs. Close #494
2017-02-15vis: remove motion and text objects related to C functionsMarc André Tanner9-197/+0
These do not really belong into the editor core. If desired they could be implemented in Lua instead.
2017-02-15text-motions: remove unused text_line_lastcharMarc André Tanner4-21/+2
2017-02-14travis: re-enable code coverageMarc André Tanner1-1/+1
2017-02-14travis: use apsolute paths for ${C,LD}FLAGSMarc André Tanner1-1/+1
This should fix build breakage of the test/util/keys utility.
2017-02-14travis: tweak build matrixMarc André Tanner1-20/+18
Try to test the different regex backends and builds with/without Lua support.
2017-02-14test: updateMarc André Tanner1-5/+5
2017-02-14vis: add compile time features to version outputMarc André Tanner1-1/+12
2017-02-12view: improve handling of long sequences of combining charactersMarc André Tanner1-1/+3
They will still not be displayed correctly, but at least they should no longer cause memory errors.
2017-02-11test: updateMarc André Tanner1-9/+5
Should fix travis failure.
2017-02-11test: updateMarc André Tanner1-5/+9
2017-02-10vis: make r handle special keys like <Tab>Marc André Tanner1-8/+4
Unlike vim we do not respect `:set expandtab` here.
2017-02-10vis: make t, T, f and F work for special keysMarc André Tanner1-9/+5
Fix #491
2017-02-10vis: introduce vis_keys_utf8Marc André Tanner3-1/+14
2017-02-09sam: fix bogus clang compiler warningMarc André Tanner1-1/+2
Strictly speaking this is a compiler bug: https://llvm.org/bugs/show_bug.cgi?id=22062 The C11 standard section 6.4.4.3 says: "An identifier declared as an enumeration constant has type int." and 6.7.2.2: "Each enumerated type shall be compatible with char, a signed integer type, or an unsigned integer type. The choice of type is implementation-defined, but shall be capable of representing the values of all the members of the enumeration." So while `err` can store a value larger than that of any enumeration member, it could also be of signed type, resulting in a warning about comparing integers of different signs. Converting it to size_t before the range check and array indexing, should fix both warnings. Fix #478
2017-02-09text: fix use of uninitialized variable in error pathMarc André Tanner1-2/+2
2017-02-09Slightly update developer section of READMEMarc André Tanner1-12/+29
2017-02-09Remove regex section from READMEMarc André Tanner1-22/+0
By now we have efficient forward searches using the TRE regex backend. Further improvements can be discussed in #488. Close #260
2017-02-08vis: improve <C-d> and <C-t> implementation in insert modeMarc André Tanner1-2/+2
Fix #487
2017-02-08vis: fix cursor positioning after :helpMarc André Tanner1-0/+1
2017-02-08vis: make `ga` and `g8` more robustMarc André Tanner1-1/+5
Fixes CID 141179
2017-02-08vis-menu: check read(2) return valueMarc André Tanner1-1/+2
Fixes CID 137371
2017-02-08vis-digraph: properly initialize local variableMarc André Tanner1-1/+1
Fixes CID 141180
2017-02-08test: updateMarc André Tanner1-5/+5
2017-02-08text: clean up iterator semanticsMarc André Tanner2-46/+69
We now guarantee the existence of at least one non-sentinel piece at all time and allow iterators to recover from these delimiting pieces.
2017-02-08sam: execute commands even if we have no valid rangeMarc André Tanner1-2/+3
In an ideal world this should never happen. However, if for some reason all cursors/selections become invalid, default to an empty range. This at least allows to terminate the editor gracefully whereas before the command would silently be ignored.
2017-02-08text: remove special case for marks at start of fileMarc André Tanner1-4/+0
Unlike EOF address 0 needs no special treatment.
2017-02-08view: fix view_cursors_scroll_to to operate on current stateMarc André Tanner1-0/+1
This should fix display issues when entering the first newline of a file.
2017-02-08vis: make sure prompt starts newline terminatedMarc André Tanner1-7/+8
2017-02-07Allow {} to be nested in shell variablesS. Gilles1-1/+1
This allows lines like : ${FOO:="${bar}/baz"} to be highlighted correctly.
2017-02-07test: updateMarc André Tanner1-5/+5
2017-02-07vis: improve text object handlingMarc André Tanner3-5/+16
Fix `gN` and delimited inner variants when given a count.
2017-02-07vis: reformat text object definitionsMarc André Tanner3-33/+107
2017-02-06Disable keymap for movement_key characterMichael Forney1-1/+6
The character following a movement_key command should not be subject to keymap translation since it is used to find characters in the document.
2017-02-05vis: set $vis_file{name,path} environment variables for external commandsMarc André Tanner2-0/+12
2017-02-05vis: add file argument to vis_pipeMarc André Tanner5-10/+14
2017-02-04view: reduce redraws upon selection changesMarc André Tanner1-10/+10
2017-02-04view: keep track of the most recently created cursorMarc André Tanner1-4/+10
Previously this was done implicitly through the primary cursor which was always adjusted when a new cursor is being created. However, this is no longer the case and we do not want to iterate through all cursors when creating a new one. In the longterm we might want to store cursors in a contiguous memory location (i.e. an array) instead of chaising pointers all over the place.
2017-02-04view: do not let new cursors automatically become primaryMarc André Tanner2-9/+12
We currently have the invariant that the primary cursor is always placed within the visisble viewport. Previously view_cursors_new would automatically make the new cursor primary. This in turn causes the viewport to be adjusted triggering lots of unnecessary redraws. As a result commands creating many new selections might become unbearably slow. Instead the caller has to explicitly make the new cursor primary.
2017-02-02test: updateMarc André Tanner1-5/+5
2017-02-02lexer: fix scheme token rule orderingMarc André Tanner1-1/+1
This should fix #412 properly.
2017-02-02map: remove unused functionMarc André Tanner2-15/+0
2017-02-02test: updateMarc André Tanner1-5/+5
2017-02-02vis: support rudimentary help search using :help patternMarc André Tanner2-1/+4
The argument needs to be a valid regular expression. It currently clobbers the last used search term and hence allows repeated searches using `n` and `N` respectively.
2017-02-02Slight code cleanups, use buffer API where appropriateMarc André Tanner3-13/+12
2017-02-02update comment and readme about lua pathChristian Hesse2-6/+7
Commit 3570869c removed the lexers sub directory from the Lua search path. Update the comment and readme to reflect this change.
2017-02-02add /etc/vis to lua path for system-wide configuration by administratorChristian Hesse2-1/+10
2017-02-01test: updateMarc André Tanner1-5/+5
2017-02-01vis: insert new line after linewise change commandsMarc André Tanner1-1/+4
This should also (at least partially) address the issues raised in #440 and #442.