diff options
author | Oskar <[email protected]> | 2023-11-07 23:12:31 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2023-11-07 23:12:31 +0100 |
commit | e2965f7ea63a5426e018c4e8c7f557fcce4c69c0 (patch) | |
tree | c6c351a729b64a8a0112de6f1e3849746f629695 /7ed.h | |
parent | c09957c3026aa7f25d7bc7a0379d961990bc9e34 (diff) |
Added edit mode and function to write the changes to file. Write function is not completely done yet because the temp file created by it is not removed when it is done. But other than that the editor actually works now. There are still some quirks that i need to sort out, especially the fact that you cant actually create a new line beyond the amount in the file you are editing
Diffstat (limited to '7ed.h')
-rw-r--r-- | 7ed.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -55,3 +55,10 @@ int startmode(char filename[]); int GET_LINE(char filename[], long focus, char **line, size_t *start); #endif /* GET_LINE_H */ + +#ifndef EDITMODE_H +#define EDITMODE_H + +int editmode(char filename[], long focus); + +#endif /* EDITMODE_H */
\ No newline at end of file |