diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-09 22:37:42 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-09 22:37:42 +0000 |
| commit | ea42d9dd4a9fc63781d49c696b208c0836e9fce3 (patch) | |
| tree | 42fc5eec8e6d68591b3f36848efa4992f126d545 /src/insert_completer.cc | |
| parent | 7af8937bacaf2e9faddf366a9d8c9299357385b0 (diff) | |
Remove is_in_range utility function
Diffstat (limited to 'src/insert_completer.cc')
| -rw-r--r-- | src/insert_completer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 9d9bc7cd..45f9681f 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -295,8 +295,8 @@ void InsertCompleter::update() ByteCoord cursor = m_context.selections().main().cursor(); ByteCoord compl_beg = m_completions.begin; if (cursor.line == compl_beg.line and - is_in_range(cursor.column, compl_beg.column, - compl_beg.column + longest_completion-1)) + compl_beg.column <= cursor.column and + cursor.column < compl_beg.column + longest_completion) { String prefix = m_context.buffer().string(compl_beg, cursor); |
