-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompletion.h
More file actions
20 lines (17 loc) · 799 Bytes
/
completion.h
File metadata and controls
20 lines (17 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef EMSYS_COMPLETION_H
#define EMSYS_COMPLETION_H
#include "emsys.h"
void resetCompletionState(struct completion_state *state);
void freeCompletionResult(struct completion_result *result);
void getFileCompletions(const char *prefix, struct completion_result *result);
void getBufferCompletions(struct editorConfig *ed, const char *prefix,
struct editorBuffer *currentBuffer,
struct completion_result *result);
void getCommandCompletions(struct editorConfig *ed, const char *prefix,
struct completion_result *result);
void handleMinibufferCompletion(struct editorBuffer *minibuf,
enum promptType type);
char *findCommonPrefix(char **strings, int count);
void closeCompletionsBuffer(void);
void editorCompleteWord(struct editorConfig *ed, struct editorBuffer *bufr);
#endif