summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-03-20Remove posB from information given by the diff algorithmMaxime Coste
posB is always the sum of previous add len and previous keep len, so very easy to keep track of.
2020-03-20Remove uses of reverse_iterator in diff implementationMaxime Coste
2020-03-17src: Fix a compilation bug with g++-8Frank LENORMAND
The Ubuntu Disco distribution comes with `g++` v8 installed by default, which is not able to deduce the return type of a particular call to `transform()`. This commit explicitly declares the return type to mitigate that problem, and allow the file to compile. Fixes #3410
2020-03-15Merge remote-tracking branch 'Anfid/scroll-test'Maxime Coste
2020-03-15Merge remote-tracking branch 'occivink/arrange-buffers'Maxime Coste
2020-03-14Fix invalid access to deleted line when updating insert completionMaxime Coste
The computation of the completion end position was taking place too early, before we checked if the buffer did get modified. Fixes #3349
2020-03-14Allow reading from fifo in readonly buffersMaxime Coste
readonly is supposed to prevent the user from modifying the buffer and it can be useful to generate a readonly fifo buffer. Fixes #3398
2020-03-13Merge remote-tracking branch 'lenormf/fix-completion-escaping'Maxime Coste
2020-03-13Merge remote-tracking branch 'lenormf/fix-Makefile-compiler-string'Maxime Coste
2020-03-13Merge remote-tracking branch 'lenormf/fix-3399'Maxime Coste
2020-03-13Handle invalid utf8 in command line a bit betterMaxime Coste
Reduce the amount of decoding by working directly on bytes. Fixes #3388
2020-03-12src: Don't escape completion candidates with `\`Frank LENORMAND
Completion candidates are currently escaped with a backslash `\` character, which leads to ugly interactive commands on the prompt, especially when they contain space characters. This commit makes completion candidates be escaped by simple quoting. Examples: candidate\ with\ spaces \%opt{foo} \"dquote \'quote become: 'candidate with spaces' '%opt{foo}' '"dquote' '''quote'
2020-03-12rc Makefile: Fix the predicate to detect `g++`Frank LENORMAND
Some distributions replace the expected "GCC" tag with their own name and version, causing the Makefile not to include a compiler flag.
2020-03-04restore F1 key handlingJoachim Henke
2020-03-04Fix invalid memory access in unit-testsMaxime Coste
2020-03-03Only replace chars >= 0 in fix_atom_textMaxime Coste
If char is signed, the test was invalid Fixes #3389
2020-03-03Merge remote-tracking branch '6112/clippy-delay'Maxime Coste
2020-03-02Expand env vars as list of stringsMaxime Coste
This makes it possible to do :select `%val{selections_decs}` and to correctly combine $kak_quoted with those.
2020-02-27Make `on_next_key_with_autoinfo()` respect `idle_timeout`Nicolas Ouellet-Payeur
The prompt and autocomplete normally wait for `idle_timeout` before showing suggestions, however commands like `g`, `v`, or the lead-key show Clippy instantly. This fixes the issue by making `on_next_key_with_autoinfo()` wait for `idle_timeout` before displaying suggestions. Fixes mawww/kakoune#3365 Fixes mawww/kakoune#2066
2020-02-26Enable terminal application keypad modeMaxime Coste
2020-02-26Control character end at 0x1FMaxime Coste
2020-02-25Do not replace spaces in prompt textMaxime Coste
2020-02-24Add a new 'arrange-buffers' to let users change the order of the buflistOlivier Perret
2020-02-22Merge remote-tracking branch 'lenormf/complete-register-names'Maxime Coste
2020-02-22Use Control Picture codepoints in prompt for all codepoints < 0x22Maxime Coste
Fixes #3333
2020-02-18Small code style tweak in ranges.hhMaxime Coste
2020-02-18Make diff implementation able to work on different iterator typesMaxime Coste
2020-02-16Merge remote-tracking branch 'lenormf/fix-makefile'Maxime Coste
2020-02-16Merge remote-tracking branch 'lenormf/startup_info-no_kakrc'Maxime Coste
2020-02-15Merge remote-tracking branch 'lenormf/fix-write-switches'Maxime Coste
2020-02-15Fix invalid memory access when getting the main entry of empty registersMaxime Coste
Fixes #3370
2020-02-09src: Only remove objects and dependencies for the current targetFrank LENORMAND
2020-02-09src: Allow `:write-all` to use -atomic, fix usageFrank LENORMAND
It seems that when -atomic was implemented for `:write`, the usage strings were not updated to reflect that a new flag was available. The `write-all` command didn't benefit from the implementation of the new flag despite also writing files - this commit fixes that.
2020-02-09src: Let `:set-register` complete register namesFrank LENORMAND
This commit allows the `set-register` command to suggest candidates named after punctuated registers, similarly to %reg{…} expansions.
2020-02-07src: Don't show startup information when opening a fileFrank LENORMAND
Follow-up to #3317
2020-02-07Fix regex start desc computation for case insensitive rangesMaxime Coste
Fixes #3345
2020-02-07Merge remote-tracking branch 'maximbaz/notes-formatting'Maxime Coste
2020-02-07Merge remote-tracking branch 'jo-he/master'Maxime Coste
2020-02-07Merge remote-tracking branch 'lenormf/startup_info-no_kakrc'Maxime Coste
2020-02-05src: Show the startup information in no-load modeFrank LENORMAND
This commit allows the changelog to be shown at startup even when the editor was run with the -n flag.
2020-02-05Merge remote-tracking branch 'omasanori/startup_info_version'Maxime Coste
2020-02-02Use ReverseView to perform fewer allocationsgeppettodivacin
The first attempt at a bug fix for @ symbols in selection buffer names worked, but it was very inefficient. In particular, it allocated three different vectors, and we really only needed the correct elements. Manipulating iterators to give us the right slices of the existing vector is far more efficient. By reversing the original content and taking the last two, we're able to get the number of selections and main selection without too much hassle. The buffer name is everything from the start of the content to the selection count. This gets us through with only one vector allocation. Credit to @mawww for the optimization idea and for fixing my types.
2020-01-26Add support for `@` symbols in selection buffergeppettodivacin
The selection descriptions use the format `<buffer>@<timestamp>@<main_index>`. This fails when file paths have `@` symbols in them: the parser splits on `@` symbols and finds more values than it expects. We here modify the behavior to require *at least* two @ symbols, using the last two for `<timestamp>` and `<main_index>` and leaving the remaining text for the <buffer>. This should work for any number of `@` symbols, since `<timestamp>` and `<main_index>` are numbers and should never contain `@` symbols.
2020-01-21Fix version comparison in show_startup_info.Masanori Ogino
The description of startup_info_version in the manual says "only messages relating to a Kakoune version greater than this value will be displayed," but showed messages relating to the version equal to that value. This change aligns the code with the manual and makes a workaround that set startup_info_version next to the original version (ex. 20200117) unnecessary. Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
2020-01-20fix several control key combinations in stJoachim Henke
2020-01-20Bring the italic formatting backMaxim Baz
2020-01-19make the Insert key work in stJoachim Henke
2020-01-16Fix version notes formattingMaxim Baz
2020-01-16Kakoune v2020.10.16Maxime Coste
2020-01-11Reset SIGHUP handler on NCursesUI destructionMaxime Coste
SIGHUP handler could trigger crashes if the EventManager was already destructed when it was triggered. Fixes #3288