diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-10-30 13:08:07 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-10-30 13:08:07 +0000 |
| commit | f556ef12c4ecab4c348cd0e862e4bcd65bc93245 (patch) | |
| tree | 181742192fb81941853b516332ed1a8008b104da /src | |
| parent | 34d7bdbc011ed01fa87e3c1933556742b2bab6d5 (diff) | |
Fix preservation of entered text in option insert completer
Diffstat (limited to 'src')
| -rw-r--r-- | src/insert_completer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 808a08a2..add9c0f0 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -217,7 +217,7 @@ InsertCompletion complete_option(const Buffer& buffer, ByteCoord cursor_pos, str_to_int({match[2].first, match[2].second}) - 1 }; if (not buffer.is_valid(coord)) return {}; - auto end = coord; + auto end = cursor_pos; if (match[3].matched) { ByteCount len = str_to_int({match[3].first, match[3].second}); |
