| Age | Commit message (Collapse) | Author |
|
|
|
We have binary packages for Arch Linux, at least!
|
|
|
|
|
|
|
|
Fail if there is already a cursor located at the requested position.
|
|
|
|
Create count new cursors on the lines above/below.
|
|
|
|
on the line above/below the first/last existing cursor.
|
|
|
|
That is when multiple cursors are on the same line, the first
cursor on every line is aligned, then the second one and so on.
|
|
The number of columns i.e. maximal number of cursors located on the
same line can be obtained by view_cursors_column_count.
Column addressing is zero based, valid indexes are [0, max-1].
Assuming there is a cursor on every letter:
a
b c
d e f
g h
i
max column would be 3, and the following would iterate over the
cursors forming the second column [c, e, h]:
for (Cursor *c = view_cursors_column(view, 1); c; c = view_cursors_column_next(c, 1))
...
|
|
This is currently only enforced upon creation i.e. we assume
that after creation a cursor can not change its relative ordering
with respect to its neighbors.
The existing code assumes that when iterating through cursors with:
for (Cursor *c = view_cursors(view); c; c = view_cursors_next(c))
...
new cursors created with view_cursors_new do not show up.
This assumption is preserved under the following conditions:
* it only holds for the most recent view_cursors call
As a consequence when doing nested iterations new cursors
will be yielded once the inner view_cursors call was performed.
* view_cursors_primary_get is not called
|
|
|
|
fixes #214
|
|
|
|
|
|
|
|
|
|
This prevents unecessary rebuilds when doing consecutive make
standalone builds.
|
|
Remove more stuff when switching between make local and make standalone.
|
|
|
|
|
|
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
The local target should use the system curses library not a custom
build one. Also the two targets are now compatible with each other,
meaning that the relevant libraries are correctly rebuilt from
scratch against the correct libc.
|
|
All targets start with the package name which allows to easily
rebuild a package by removing everything matching the shell pattern
dependency/build/$package*
|
|
I hadn't noticed the `return;` line when a filetype match is found so
couldn't get my additions to this function to work. Moving the detection
to a separate function keeps that isolated and indicates that other
functions can be called from the same `vis.events.win_open` hook.
|
|
|
|
|
|
|
|
|
|
Using -std=c99 in combination with c99 does not make sense.
Some versions of Mac OS seem to have a broken wrapper implementing
the c99 utility which always generates 32-bit code instead of
targeting the native architecture.
http://stackoverflow.com/questions/4182413
Also add clang to the list of compilers to try.
|
|
|
|
On Cygwin the configure check for libtermkey fails due to unresolved
symbols from libcurses.
The pkg-config file of libtermkey lacks a reference to its
dependencies (either curses or unibilium). Since we depend on
curses anyway we can fix this by adding $LDFLAGS_CURSES to the
configure check.
|
|
This should fix configure checks on Cygwin whereas before gcc would
attempt (and fail) to write to /dev/null.exe
|
|
|
|
|
|
|
|
Originally written for the wed editor by Richard Burke, released
under the ISC license for vis.
|
|
|
|
|
|
|
|
This simplifies deployment of vis on remote systems without root
access. The idea is to extract a statically linked binary together with
the lexer syntax files into some directory, adjust $PATH to include it
and have everything just work.
For now this uses /proc/self/exe and thus only works on Linux based
systems.
|
|
|
|
|
|
|
|
This should fix `make local` (as used on travis-ci) and `make standalone`
in cases where `configure` was not run successfully due to missing
dependencies.
|
|
We want vis to be rebuilt when configuration changes, so make vis depend
on config.mk.
|
|
|