diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-05-25 08:38:11 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-25 19:54:08 +0100 |
| commit | 83d85df26e68687ca124c3affb42e246fd77188a (patch) | |
| tree | 87260753f599c46706e6aa77249c35e5e1c7aed4 /src/option_types.hh | |
| parent | f014eb7052082f7a6760dbd2aec9204b0cb4e1dc (diff) | |
Add an update-option command to update range-descs/line-descs options
update-option will make the range-descs and line-descs option up to
date with the latest buffer modfications, changing the ranges/lines
to where they moved according the modifications since the timestamp
on the option.
Diffstat (limited to 'src/option_types.hh')
| -rw-r--r-- | src/option_types.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/option_types.hh b/src/option_types.hh index 81dca3bd..56b32e99 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -218,6 +218,11 @@ inline bool option_add(WorstMatch, StringView) throw runtime_error("no add operation supported for this option type"); } +inline void option_update(WorstMatch, const Context&) +{ + throw runtime_error("no update operation supported for this option type"); +} + template<typename EffectiveType, typename LineType, typename ColumnType> inline void option_from_string(StringView str, LineAndColumn<EffectiveType, LineType, ColumnType>& opt) { |
