titlebar: drop the prefix "File: " from before the filename
Этот коммит содержится в:
родитель
cbf4f77d6b
Коммит
9738c7997b
@ -2006,7 +2006,7 @@ void titlebar(const char *path)
|
|||||||
const char *branding = BRANDING;
|
const char *branding = BRANDING;
|
||||||
/* What is shown in the top left corner. */
|
/* What is shown in the top left corner. */
|
||||||
const char *prefix = "";
|
const char *prefix = "";
|
||||||
/* What is shown before the path -- "File:", "DIR:", or "". */
|
/* What is shown before the path -- "DIR:" or nothing. */
|
||||||
const char *state = "";
|
const char *state = "";
|
||||||
/* The state of the current buffer -- "Modified", "View", or "". */
|
/* The state of the current buffer -- "Modified", "View", or "". */
|
||||||
char *caption;
|
char *caption;
|
||||||
@ -2047,10 +2047,8 @@ void titlebar(const char *path)
|
|||||||
else {
|
else {
|
||||||
if (openfile->filename[0] == '\0')
|
if (openfile->filename[0] == '\0')
|
||||||
path = _("New Buffer");
|
path = _("New Buffer");
|
||||||
else {
|
else
|
||||||
path = openfile->filename;
|
path = openfile->filename;
|
||||||
prefix = _("File:");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (openfile->modified)
|
if (openfile->modified)
|
||||||
state = _("Modified");
|
state = _("Modified");
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user