summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 19:51:13 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 19:51:13 -0500
commitd9cc57e9ff1725e6e63973705adbf218d6961d17 (patch)
tree4c2eaa1e0b39a3387793299c52062996ee7be3ae /main.c
parent87b0da0d33d97abc0ba94ad18d988d370d09441b (diff)
fix command-line argument starting file if it doesn't exist
it used to open an untitled buffer. also, clarified buffer_load_file
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 898ebe4..7a9b507 100644
--- a/main.c
+++ b/main.c
@@ -26,6 +26,7 @@
- clangd bug report:
- textDocumemt/definition on ted.h declarations just gives you the declaration
FUTURE FEATURES:
+- better handling of backspace with space indentation
- CSS highlighting
- styles ([color] sections)
- make go-to-definition/hover/highlight modifier key configurable
@@ -358,7 +359,7 @@ int main(int argc, char **argv) {
// make sure signal handler has access to ted.
error_signal_handler_ted = ted;
- fs_get_cwd(ted->start_cwd, sizeof ted->start_cwd);
+ os_get_cwd(ted->start_cwd, sizeof ted->start_cwd);
{ // get local and global data directory
#if _WIN32
wchar_t *appdata = NULL;
@@ -408,7 +409,7 @@ int main(int argc, char **argv) {
}
{ // get current working directory
- fs_get_cwd(ted->cwd, sizeof ted->cwd);
+ os_get_cwd(ted->cwd, sizeof ted->cwd);
}
{ // check if this is the installed version of ted (as opposed to just running it from the directory with the source)