1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-22 11:01:48 +03:00
kakoune/src
Maxime Coste 8f2c6eb586 Fix write_all_buffers when BufWrite... hooks create/delete buffers
The buffer list can be mutated during iteration, so it is no safe
to directly iterate on the BufferManager, we need to first create
our own copy of the buffer list.

Fixes #935
2016-11-23 23:51:16 +00:00
..
.gdbinit update gdbinit 2014-01-27 19:51:58 +00:00
alias_registry.cc Convert some uses of lambda to more concise std::mem_fn 2016-10-10 23:44:18 +01:00
alias_registry.hh Use ranked match based completion for command names 2016-03-08 13:56:37 +00:00
array_view.hh Make ArrayView::subrange size arguement optional 2016-11-20 11:15:15 +00:00
assert.cc Use a StringView in notify_fatal_error 2016-02-29 22:15:36 +00:00
assert.hh Use variadic macros for kak_assert to remove the need for COMMA 2016-05-17 19:39:55 +01:00
backtrace.cc String usage cleanups 2016-02-04 23:54:22 +00:00
backtrace.hh Return a String in Backtrace::desc 2015-05-29 13:35:54 +01:00
buffer_manager.cc Always allow to delete a buffer, just recreate a scratch buffer if needed 2016-10-13 21:37:44 +01:00
buffer_manager.hh Only create a default *scratch* when we dont have any non debug buffers 2016-10-11 00:45:05 +01:00
buffer_utils.cc Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
buffer_utils.hh Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
buffer.cc Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
buffer.hh Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
buffer.inl.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
client_manager.cc Support deleting a buffer even if another client is in insert mode on it 2016-11-05 11:29:47 +00:00
client_manager.hh Rework client quitting and handling of remote errors 2016-09-04 17:56:07 +01:00
client.cc Run WinDisplay hook on creation of clients 2016-11-03 19:09:52 +00:00
client.hh Display a status line message when Kakoune is waiting on a shell to complete 2016-10-29 11:25:58 +01:00
clock.hh Introduce chrono.hh 2016-07-24 21:25:05 +01:00
color.cc Move Colors enum class as NamedColor enum inside Color struct 2015-04-25 10:47:39 +01:00
color.hh Move Colors enum class as NamedColor enum inside Color struct 2015-04-25 10:47:39 +01:00
command_manager.cc Make ArrayView::subrange size arguement optional 2016-11-20 11:15:15 +00:00
command_manager.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
commands.cc Fix write_all_buffers when BufWrite... hooks create/delete buffers 2016-11-23 23:51:16 +00:00
commands.hh Remove the exec_keys function 2015-12-27 23:15:09 +00:00
completion.cc Remove trailing whitespaces 2015-11-19 16:31:00 +01:00
completion.hh Regenerate shell-candidates for each completion sessions 2016-08-05 13:53:19 +01:00
containers.hh Use std::begin/std::end in containers.hh instead of the method version 2016-10-11 00:17:00 +01:00
context.cc Display a status line message when Kakoune is waiting on a shell to complete 2016-10-29 11:25:58 +01:00
context.hh Display a status line message when Kakoune is waiting on a shell to complete 2016-10-29 11:25:58 +01:00
coord.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
diff.hh Remove trailing whitespaces 2015-11-19 16:31:00 +01:00
display_buffer.cc BufferRange option syntax support <line>.<column>+<len> and is inclusive 2016-10-26 22:58:12 +01:00
display_buffer.hh Rename DisplayAtom::Types to avoid conflicts with struct BufferRange 2016-10-13 19:55:15 +01:00
enum.hh Add a SplitView container view 2016-03-25 20:38:26 +00:00
env_vars.cc Keep it simple, remove all that sorted id map thing 2015-09-18 13:52:32 +01:00
env_vars.hh Use IdMap instead of UnorderedMap for ui options and env vars 2015-09-16 19:04:19 +01:00
event_manager.cc Rename set_signal_wrapper to set_signal_handler and tweak SignalHandler def 2016-01-10 20:46:15 +00:00
event_manager.hh Introduce chrono.hh 2016-07-24 21:25:05 +01:00
exception.cc exception::what returns a StringView rather than a const char* 2015-03-13 13:15:51 +00:00
exception.hh Remove unneeded c_str() call 2015-03-25 13:42:36 +00:00
face_registry.cc Convert some uses of lambda to more concise std::mem_fn 2016-10-10 23:44:18 +01:00
face_registry.hh Fix face completion, avoid a spurious temporary 2016-02-12 19:14:06 +00:00
face.hh Add an exclusive attribute that overrides existing face 2015-10-23 13:46:41 +01:00
file.cc Only rely on ignored_files option to remove hidden files, no built in logic 2016-11-18 09:38:48 +00:00
file.hh Do not expand filenames when doing insert filename completion 2016-10-13 19:46:09 +01:00
flags.hh Tweak RankedMatch behaviour and fix bug in its comparison function 2016-11-14 19:39:35 +00:00
hash.cc Rework hashing, use a more extensible framework similar to n3876 proposal 2014-12-16 18:57:19 +00:00
hash.hh Add a combine_hash helper function 2015-06-20 15:04:31 +01:00
highlighter_group.cc Rework container helpers, use pipe syntax and cleanup implementation 2016-03-08 21:35:56 +00:00
highlighter_group.hh Add missing 'override' specifiers 2015-05-25 13:54:18 +01:00
highlighter.hh Remove redundant forward declaration 2015-06-01 18:33:08 +01:00
highlighters.cc Make ArrayView::subrange size arguement optional 2016-11-20 11:15:15 +00:00
highlighters.hh Initial, WIP spelling implementation 2015-12-17 04:07:49 +00:00
hook_manager.cc Make hook disabling work for all hooks, not only user hooks 2016-09-26 23:43:05 +01:00
hook_manager.hh Detect recursive hook run and abort in that case 2016-06-27 20:55:07 +01:00
id_map.hh Keep it simple, remove all that sorted id map thing 2015-09-18 13:52:32 +01:00
input_handler.cc Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
input_handler.hh Propagate NormalParams to user mappings 2016-11-02 23:12:57 +00:00
insert_completer.cc Support codepoints of variable width 2016-10-01 13:45:00 +01:00
insert_completer.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
json_ui.cc Support codepoints of variable width 2016-10-01 13:45:00 +01:00
json_ui.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
keymap_manager.cc ArrayView content is not const anymore 2015-03-09 13:54:09 +00:00
keymap_manager.hh Add remapping of text object keys 2015-07-01 17:53:38 +02:00
keys.cc Support Ctrl + mouse dragging to add a new selection 2016-10-13 22:59:02 +01:00
keys.hh Support Ctrl + mouse dragging to add a new selection 2016-10-13 22:59:02 +01:00
line_modification.cc Use variadic macros for kak_assert to remove the need for COMMA 2016-05-17 19:39:55 +01:00
line_modification.hh Rewrite line modifications, hopefully with easier to comprehend code 2015-01-31 23:50:24 +00:00
main.cc More correct handling of SIGHUP while suspended 2016-11-14 00:49:34 +00:00
Makefile Add experimental static linking support to the makefile 2016-11-02 22:28:05 +00:00
memory.cc refactor slighly memory domain handling 2015-01-12 19:48:51 +00:00
memory.hh Use proper buffering when reading remote messages 2016-09-04 11:17:35 +01:00
ncurses_ui.cc Remove some unneeded headers from ncurses_ui.cc 2016-11-22 09:49:55 +00:00
ncurses_ui.hh More correct handling of SIGHUP while suspended 2016-11-14 00:49:34 +00:00
normal.cc Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
normal.hh Use a static array to store the keymap 2015-03-09 13:55:55 +00:00
option_manager.cc More transform(...) filter cleanup using mem_fn when possible 2016-10-11 00:32:40 +01:00
option_manager.hh Validate option names to be in [a-zA-Z0-9_] 2016-09-27 09:54:55 +01:00
option_types.hh Convert some uses of lambda to more concise std::mem_fn 2016-10-10 23:44:18 +01:00
optional.hh Rework client quitting and handling of remote errors 2016-09-04 17:56:07 +01:00
parameters_parser.cc Small code tweak in generate_switches_doc 2016-09-05 23:34:03 +01:00
parameters_parser.hh Port even more code to use format function 2015-06-01 21:15:59 +01:00
ranked_match.cc Fix literal type that must be 64 bits 2016-11-22 22:20:30 +00:00
ranked_match.hh Tweak RankedMatch behaviour and fix bug in its comparison function 2016-11-14 19:39:35 +00:00
ref_ptr.hh Fix input mode keep alive handling, use a refcount for input modes 2015-12-12 23:51:51 +00:00
regex.cc Go back to libc locale and use c_regex_traits 2016-05-19 21:45:23 +01:00
regex.hh Do not let boost regex errors propagate, convert them to Kakoune errors. 2016-09-06 13:55:14 +01:00
register_manager.cc Fix register alternate name doc and dash -> hash for '#' 2016-10-10 23:19:57 +01:00
register_manager.hh Make DynamicRegister statically dispatch to its function 2016-03-31 09:17:02 +01:00
remote.cc Handle all available keys when a RemoteClient input is available 2016-10-06 23:47:44 +01:00
remote.hh Handle all available keys when a RemoteClient input is available 2016-10-06 23:47:44 +01:00
safe_ptr.hh Style tweak 2015-06-10 22:42:07 +01:00
scope.hh small code formatting fix 2015-04-09 16:28:13 +01:00
selection.cc More transform(...) filter cleanup using mem_fn when possible 2016-10-11 00:32:40 +01:00
selection.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
selectors.cc Support codepoints of variable width 2016-10-01 13:45:00 +01:00
selectors.hh Force wrapping when searching from buffer end 2016-10-23 21:03:15 +01:00
shared_string.cc dont intern SharedStrings but StringDataPtr 2016-02-05 00:20:45 +00:00
shared_string.hh Get rid of SharedString 2016-02-05 09:38:33 +00:00
shell_manager.cc Display a status line message when Kakoune is waiting on a shell to complete 2016-10-29 11:25:58 +01:00
shell_manager.hh Add support for env var name completion 2016-04-17 19:21:43 +01:00
string.cc Fix horrible leak in String::Data::operator=(String::Data&&) 2016-11-23 01:09:09 +00:00
string.hh Add to_string(long long int) overload to fix OSX compilation 2016-10-31 10:19:06 +00:00
unicode.hh Treat '\n' as 1 column wide 2016-10-04 19:37:43 +01:00
unit_tests.cc Small refactor in unit tests 2015-05-24 22:34:05 +01:00
unit_tests.hh Small refactor in unit tests 2015-05-24 22:34:05 +01:00
units.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
unordered_map.hh Fix UnorderedSet allocator 2015-04-16 23:46:26 +01:00
user_interface.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
utf8_iterator.hh Avoid underlying iterator copies in utf8_iterator 2016-07-27 21:36:32 +01:00
utf8.hh Rename get_width to codepoint_width 2016-10-01 13:45:00 +01:00
utils.hh Tweak useage of skip_while and move the functions in utils.hh 2016-03-06 15:12:36 +00:00
value.hh Fix Value constructor, we never want to create reference values 2016-03-06 15:12:36 +00:00
vector.hh Try to fix travis compilation errors 2015-01-21 13:35:23 +00:00
window.cc Propagate the hooks disabled state through prompt, menu, and command execution 2016-11-14 19:39:35 +00:00
window.hh Support codepoints of variable width 2016-10-01 13:45:00 +01:00
word_db.cc Introduce the 'completion_extra_word_chars' option 2016-08-24 23:47:09 +01:00
word_db.hh Introduce the 'completion_extra_word_chars' option 2016-08-24 23:47:09 +01:00