Introduction
Introduction Statistics Contact Development Disclaimer Help
tShow file name in left part of status line - ve - a minimal text editor (work …
git clone git://src.adamsgaard.dk/ve
Log
Files
Refs
README
LICENSE
---
commit da50d333219b36039f8cde3175865d3db0212f05
parent 42d4fa8d939f6525a7fb75fbf94e551813dab8f7
Author: Anders Damsgaard <[email protected]>
Date: Tue, 6 Aug 2019 14:39:54 +0200
Show file name in left part of status line
Diffstat:
M output.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/output.c b/output.c
t@@ -38,13 +38,16 @@ editor_draw_status(struct abuf *ab)
switch (E.mode) {
case 1:
left_status_len = snprintf(left_status, sizeof(left_st…
- "INSERT");
+ "INSERT ");
break;
case 2:
left_status_len = snprintf(left_status, sizeof(left_st…
- "VISUAL");
+ "VISUAL ");
break;
}
+ left_status_len += snprintf(left_status + left_status_len,
+ sizeof(left_status),
+ E.filename ? E.filename : "[unnamed] ");
right_status_len = snprintf(right_status, sizeof(right_status),
"%.0f%% < %d:%d",
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.