mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Autocomplete at the end of tokens
Not at the end of "words" separated by spaces.
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Code {
|
||||
class EditorView : public Responder, public View, public ScrollViewDelegate {
|
||||
public:
|
||||
EditorView(Responder * parentResponder, App * pythonDelegate);
|
||||
bool shouldAutocomplete() const { return m_textArea.shouldAutocomplete(); }
|
||||
PythonTextArea::AutocompletionType autocompletionType(const char ** autocompletionBeginning, const char ** autocompletionEnd) const { return m_textArea.autocompletionType(nullptr, autocompletionBeginning, autocompletionEnd); }
|
||||
bool isAutocompleting() const;
|
||||
void resetSelection();
|
||||
void setTextAreaDelegates(InputEventHandlerDelegate * inputEventHandlerDelegate, TextAreaDelegate * delegate) {
|
||||
@@ -19,6 +19,9 @@ public:
|
||||
void setText(char * textBuffer, size_t textBufferSize) {
|
||||
m_textArea.setText(textBuffer, textBufferSize);
|
||||
}
|
||||
const char * cursorLocation() {
|
||||
return m_textArea.cursorLocation();
|
||||
}
|
||||
bool setCursorLocation(const char * location) {
|
||||
return m_textArea.setCursorLocation(location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user