summaryrefslogtreecommitdiff
path: root/ted-base.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 21:53:37 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 21:53:37 -0500
commit3cc173dd38e85c751bb1a9f9288ebe974e567ba4 (patch)
treefa822005135b515307c223e3154c9b03f61203d7 /ted-base.c
parent90ffcaad047caa55e65a6bf858a7b976e062007a (diff)
ctrl+pageup/down to switch between tabs
Diffstat (limited to 'ted-base.c')
-rw-r--r--ted-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ted-base.c b/ted-base.c
index 4cc1bee..8b0ab07 100644
--- a/ted-base.c
+++ b/ted-base.c
@@ -148,7 +148,7 @@ static void ted_new_file(Ted *ted) {
arr_add(node->tabs, (u16)new_buffer_index);
TextBuffer *new_buffer = &ted->buffers[new_buffer_index];
if (node->tabs) {
- buffer_new_file(new_buffer, "Untitled");
+ buffer_new_file(new_buffer, TED_UNTITLED);
if (!buffer_haserr(new_buffer)) {
ted->active_buffer = new_buffer;
node->active_tab = (u16)(arr_len(node->tabs) - 1);