Maxime Coste
b6f4985c10
Use markup for startup-info message
2020-01-04 12:12:38 +11:00
Maxime Coste
e6b98744c6
Restore support for line wrapping info boxes
...
Fixes #3280
2020-01-04 11:41:16 +11:00
Maxime Coste
8b6ed26e8c
Few style changes on history exposition code
2020-01-02 22:36:26 +11:00
Maxime Coste
43dc494e5c
Merge remote-tracking branch 'eraserhd/history-api'
2020-01-02 21:13:43 +11:00
Jason Felice
b03b51d27a
Add 'history' and 'uncommitted_modifications' expansions
2020-01-01 19:47:29 -05:00
Maxime Coste
a17a0345cf
Fix replacing at begining of buffer
...
Fixes #3275
2019-12-31 12:49:24 +11:00
Maxime Coste
22bfbd06af
Redraw relevant clients after adding/removing highlighters
2019-12-28 11:27:04 +11:00
Maxime Coste
7c1d4f5bd6
Avoid unnecessary std::function
2019-12-28 10:47:16 +11:00
Maxime Coste
456fbd1315
Refactor fifo buffer reader code
2019-12-28 10:32:15 +11:00
Maxime Coste
62b4780e07
Fix command error line/column reporting
2019-12-24 08:34:24 +11:00
Maxime Coste
1946b6b09c
Merge remote-tracking branch 'jkonecny/master-backport-fedora-spec'
2019-12-19 13:45:27 +11:00
Maxime Coste
a3445232a4
Update fs status post buffer write
2019-12-19 13:39:30 +11:00
Jiri Konecny
e6c7a8e44f
Make possible to change compression for make dist
...
This will make possible to get the same archive from make dist as from
GitHub archives. GitHub archives do not support current bzip2.
2019-12-18 17:59:18 +01:00
Maxime Coste
b68490ef11
Cleanup replaced range selection logic
...
Do not access Buffer::m_changes to find the inserted range, return
it directly from Buffer::insert and Buffer::replace. This fixes a
wrong behaviour where replacing at eof would lose the selected end
of line (as the implementation does not actually replace that end
of line)
2019-12-18 11:36:17 +11:00
Maxime Coste
878a7fbb90
Fix window_range expansion
...
It relied on the buffer first char being visible, and could trigger
segfaults when that was not the case.
2019-12-16 14:09:20 +11:00
Maxime Coste
efabe28173
Fix WinResize hook getting triggered during urgent event processing
...
WinResize hooks could be triggered during shell evaluation, leading
to any state potentially getting mutated after a shell evaluation
call.
2019-12-16 14:07:22 +11:00
Tim Allen
b09653ccc5
highlighters.cc: Add a '-min-digits' flag to the number-lines highlighter.
...
Fixes #3260 .
2019-12-15 13:36:25 +11:00
Maxime Coste
dfc67dd582
Code style tweak
2019-12-15 10:47:20 +11:00
Maxime Coste
874717885a
Code style tweak in insert_output
2019-12-14 09:20:01 +11:00
Maxime Coste
32157a5809
Merge remote-tracking branch 'lenormf/reevaluate-exclamation-point'
2019-12-14 09:13:43 +11:00
Maxime Coste
53cef671fc
Merge remote-tracking branch 'Screwtapello/tmux-keys'
2019-12-12 12:02:51 +11:00
Tim Allen
170762b4d9
src/ncurses_ui.cc: Add support for VT220-style Home and End keys.
...
Because we now support a bunch of different conventions for these keys, let's
add some citations for the benefit of future maintainers.
Fixes #3252 .
2019-12-11 22:53:15 +11:00
Tobias Kortkamp
fc2b5c5f7b
Fix build on FreeBSD again
...
json_ui.cc:29:9: error: use of undeclared identifier 'sprintf'
sprintf(buffer, R"("#%02x%02x%02x")", color.r, color.g, color.b);
^
1 error generated.
Regressed by 7cdbe1d3d2
2019-12-10 18:13:08 +01:00
Maxime Coste
9ace7b584d
Kakoune v2019.12.10
2019-12-10 21:36:03 +11:00
Maxime Coste
15df0fc781
Add -scratch and -file switches to the rename-buffer command
2019-12-07 15:40:57 +11:00
Maxime Coste
42094209fd
Update New flag and last save timestamp on buffer rename
...
Fxies #3244
2019-12-07 15:40:55 +11:00
Maxime Coste
023a65eeac
Optimize regex in command
2019-12-05 21:11:12 +11:00
Maxime Coste
eb5af59d55
Restore regex optimization pass by introducing basic block analysis
...
Run the peephole optimizer on each basic block, avoiding the
previous issue that some instructions could move across their
boundaries.
2019-12-05 21:10:14 +11:00
Maxime Coste
d539e8fb89
Do not decode utf-8 when looking for regex next start
...
There is no need to decode as we know any non-ascii characters will
be treated as Other in the StartDesc.
2019-12-04 22:33:11 +11:00
Maxime Coste
ee2985739b
Merge remote-tracking branch 'lenormf/window-range'
2019-12-04 21:16:11 +11:00
Maxime Coste
5c5d881c11
Merge remote-tracking branch 'lenormf/reload-buffer-hash'
2019-12-04 21:14:15 +11:00
Frank LENORMAND
e1bd076f5e
src: Reload buffers when their contents' hash changes
...
Instead of triggering a reload event when the timestamp of a buffer's
underlying file changes, do so when its contents are actually modified.
2019-12-03 17:05:24 +01:00
Maxime Coste
0b66aa8dda
Document that fg face is optional
2019-12-03 21:17:33 +11:00
Maxime Coste
36dce6a2d0
Merge remote-tracking branch 'lenormf/split-json'
2019-12-03 21:13:35 +11:00
Maxime Coste
5c1433ee65
Merge remote-tracking branch 'Laaas/patch-1'
2019-12-03 21:11:14 +11:00
Maxime Coste
b5baac4336
Merge remote-tracking branch 'lenormf/fix-doc-face-base'
2019-12-03 20:59:40 +11:00
Maxime Coste
a6a5d866a5
Merge remote-tracking branch 'somasis/master'
2019-12-03 20:59:33 +11:00
Frank LENORMAND
d32a660863
src: Document the base face syntax in :set-face
2019-12-02 11:37:31 +01:00
Frank LENORMAND
63092d12c0
src: Fix the build on Mac
...
When compiled on Mac with `clang`, the following error occurs at
compile-time:
```
./diff.hh:56:28: error: no member named 'min' in namespace 'std'
const int max_D = std::min((M + N + 1) / 2 + 1, cost_limit);
~~~~~^
```
2019-12-01 21:55:55 +01:00
Maxime Coste
2623366514
Pass inserted text ranges in InsertCompletionHide hook parameter
...
Fixes #2898
2019-12-01 21:05:02 +11:00
Kylie McClain
dc1cf24846
buffer.hh: Fix building on musl+libc++
...
Fixes #3233 .
2019-11-29 22:58:36 -05:00
Maxime Coste
4fdbf21ff8
Refactor diff to make allocating a diff vector optional
...
The diff interface now goes through a for_each_diff function that
uses a callback for each found diff.
2019-11-30 11:29:36 +11:00
Maxime Coste
b765fb4971
Merge remote-tracking branch 'lenormf/fix-mmap-size-check'
2019-11-28 20:35:52 +11:00
Maxime Coste
085e7dd09e
Merge remote-tracking branch 'lenormf/patch-2'
2019-11-28 20:32:16 +11:00
Maxime Coste
2904d13420
Add a {\} marker to disable markup processing
2019-11-28 20:23:52 +11:00
Frank LENORMAND
7a384edeb0
src: Check the filesize before calling mmap()
2019-11-26 13:26:31 +01:00
Maxime Coste
fc9e0e8c6a
Fix small info text not being displayed
2019-11-26 22:08:05 +11:00
Maxime Coste
a933cae7b9
Merge remote-tracking branch 'lenormf/complete-expansion-reg'
2019-11-26 21:35:05 +11:00
Maxime Coste
9716c7c82d
Merge remote-tracking branch 'lenormf/complete-expansion-file'
2019-11-26 21:34:22 +11:00
Frank LENORMAND
7512f5eae6
src: Use begin()
to get iterators
...
When compiling the code with `-Wp,-D_GLIBCXX_ASSERTIONS`, the process
gets aborted, likely because iterators to standard containers are
not obtained in a safe way.
Fixes #3226 .
2019-11-25 11:34:39 +01:00