summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-06-30src: Make `C` skip empty linesFrank LENORMAND
This commits changes the way `C` behaves when the next line is empty: instead of stopping the selection, it will now jump to the next line that can hold a selection as big as the current one. The primitive's count parameter holds the maximum amount of selections that should be added to the current one. Closes #2061
2018-06-30src: Fix cycle hogging when using `C` at EOFFrank LENORMAND
2018-06-30src: Make `!` re-evaluate the command for each selectionFrank LENORMAND
Fixes #2138
2018-06-28Fix wrong logic for moving filedescriptors leading to closed stdinMaxime Coste
With this fix, tests can now use /dev/null as stdin. Fixes #2165
2018-06-24Use a dedicated vm op for dot when match-newline is falseOlivier Perret
2018-06-24Use bit-flags for storing regex regex optionsOlivier Perret
2018-06-24Add support for regex flag to toggle dot-matches-newlineOlivier Perret
2018-06-21Refactor the way main selection is determined after rotating contentsMaxime Coste
Fixes #2133
2018-06-20Pass in OpenBSD binary path using preprocessor optiondahlbaek
Alternative to hard coding binary path for OpenBSD
2018-06-20Remove extraneous include for openbsdPatrick Marchand
Forgot to remove this before pushing.
2018-06-20Adds openbsd supportPatrick Marchand
Seems to work on openbsd 6.3-current but needs more testing. Had to hardcode the binary path as openbsd considers getting the executable path at runtime a security flaw.
2018-06-20Tweak search style menu completion displayMaxime Coste
2018-06-20Do not draw menu if it would hide prompt contentMaxime Coste
2018-06-19Change Search completion to display on top of the modelineMaxime Coste
2018-06-19Fix two <s-tab> requiered to access last completion in promptMaxime Coste
A single <s-tab> should be enough.
2018-06-15Improve unmap command key-completerDelapouite
2018-06-13Fix edit -fifo without -scroll when the buffer is already openedMaxime Coste
Scrolling was taking place in that case even though it was not desired.
2018-06-13Fix crash when adapting window position post buffer modificationsMaxime Coste
2018-06-12Remove unneeded Window::m_range post refactoringMaxime Coste
2018-06-11Try to keep window position fixed when buffer gets modifiedMaxime Coste
Adapt window position to the changes that happened in the buffer since last redraw. Fixes #1989
2018-06-11Extract update_ranges_ifn as a general utility functionMaxime Coste
2018-06-11Add position offset to Window to limit moves with search menu styleMaxime Coste
Window can be resized with an "offset_pos" flag, which means that the resize took place on the top left corner of the window, leading to a change in current window position. This is treated as temporary and the position change is stored in a m_position_offset field. That allows the ncurses UI to offset the position when it displays a Search menu, so that the window does not constantly scroll when the search menu open/closes. The window will only scroll if it needs to in order to keep the main selectin visible.
2018-06-11Pass DisplaySetup through the HighlightContextMaxime Coste
2018-06-03Merge remote-tracking branch 'alyssais/patch-2'Maxime Coste
2018-06-03NCursesUI: Use only 3 line menu for MenuStyle::SearchMaxime Coste
2018-06-03Add MenuStyle::Search that prevents the menu from hiding buffer textMaxime Coste
Fixes #2042
2018-06-03EventManager: Never block if a forced file descriptor is presentMaxime Coste
2018-06-03Code cleanup and slight refactor in NCursesUI menu codeMaxime Coste
2018-06-01Fix grammar in highlight error messageAlyssa Ross
2018-05-30docs: fix missing `]` in wrap hl -marker switch docstringDelapouite
Also add the related changelog entry
2018-05-28Fix typos in add-highlighter range helpAlyssa Ross
2018-05-28Fix clang compilationMaxime Coste
2018-05-27Refactor option_from_string to return directly the option valueMaxime Coste
2018-05-27Add unit test for option parsingMaxime Coste
2018-05-26Add a -marker <marker_text> switch support to the wrap highlighterMaxime Coste
This makes wrapped lines very explicit. Fixes #2065
2018-05-26Rework `fail` command not to display command call stackMaxime Coste
`fail` triggers "expected" errors, and hence should just display the provided message.
2018-05-26Do not expose C++ typeid().name to user facing errors on wrong option typeMaxime Coste
Fixes #2079
2018-05-24Fix potential assert on itersel selection restorationMaxime Coste
We cannot guarantee after an itersel that selections are going to still be in ascending order, but we were calling a SelectionList constructor that was assuming this was the case.
2018-05-23Fix Kakoune client busy looping on SIGHUPMaxime Coste
Pure clients never quitted when they got SIGHUP after recent changes to add is_ok to UserInterface. run_client now tracks the UI state as well and quits if the UI gets killed.
2018-05-21Do not reuse m_buffer_trash to store dying buffers in ~BufferManagerMaxime Coste
Doing that clears m_buffer_trash, deleting buffers contained there, but we are not ready to have Buffer destructors running yet as we did not clear the ClientManager, meaning we might have free windows pointing to buffers in the buffer trash.
2018-05-21Gather options in a vector when running Buffer::on_option_changedMaxime Coste
on_option_changed might trigger hooks that will mutate the option managers, invalidating the iterators we use.
2018-05-21Fix also the implementation of to_string(size_t) changeMaxime Coste
2018-05-21Small code cleanupMaxime Coste
2018-05-21Fix incompatible to_string function declaration when size_t is unsigned intMaxime Coste
2018-05-19Extend `try` command to support multiple catches.Maxime Coste
If a catch command fails, and another catch is availabe following it, that following catch gets executed.
2018-05-19Fix behaviour of extending to next match when wrappingMaxime Coste
If the search wraps to get to next match, drop that selection when extending.
2018-05-19Rename -allow-override switch to -overrideMaxime Coste
Closes #2057
2018-05-19Fix assert with window small enough so that no part of buffer is displayedMaxime Coste
Fixes #2056
2018-05-17Small code cleanupsMaxime Coste
2018-05-17Fix potential missed redrawsMaxime Coste