| Age | Commit message (Collapse) | Author | Files | Lines |
|
This should fix build breakage of the test/util/keys utility.
|
|
Try to test the different regex backends and builds with/without Lua support.
|
|
|
|
|
|
They will still not be displayed correctly, but at least they
should no longer cause memory errors.
|
|
Should fix travis failure.
|
|
|
|
Unlike vim we do not respect `:set expandtab` here.
|
|
Fix #491
|
|
|
|
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
|
|
|
|
|
|
By now we have efficient forward searches using the TRE regex backend.
Further improvements can be discussed in #488.
Close #260
|
|
Fix #487
|
|
|
|
Fixes CID 141179
|
|
Fixes CID 137371
|
|
Fixes CID 141180
|
|
|
|
We now guarantee the existence of at least one non-sentinel
piece at all time and allow iterators to recover from these
delimiting pieces.
|
|
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.
|
|
Unlike EOF address 0 needs no special treatment.
|
|
This should fix display issues when entering the first newline of a file.
|
|
|
|
This allows lines like
: ${FOO:="${bar}/baz"}
to be highlighted correctly.
|
|
|
|
Fix `gN` and delimited inner variants when given a count.
|
|
|
|
The character following a movement_key command should not be subject to
keymap translation since it is used to find characters in the document.
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
This should fix #412 properly.
|
|
|
|
|
|
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.
|
|
|
|
Commit 3570869c removed the lexers sub directory from the Lua search
path. Update the comment and readme to reflect this change.
|
|
|
|
|
|
This should also (at least partially) address the issues raised
in #440 and #442.
|
|
The cursor needs to be adjusted after every insertion, not
just the first one. The implementation is currently rather
ugly because it clobbers the dot register with pseudo keys.
|
|
Rather than inserting a newline and then looking for leading white space
of the previous line we now gather the white space before newline insertion.
Also we no longer indent empty lines.
Close #472
|
|
Releases for attr and acl are pretty old and their build systems are
really borked. The code in git head looks a lot better, so use that.
|
|
|
|
Make sure the selection setting code (used to restore selections)
does not move the cursor.
Fix #479
|