]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added search direction to the status line
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 6 Jan 2017 13:40:30 +0000 (08:40 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 6 Jan 2017 13:40:30 +0000 (08:40 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index 0f3d040274eb50016a5789b7e4768a0c602b24de..056a1872697cd952fb7c0fd8b620c700ab6f3f03 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -309,6 +309,7 @@ static void draw_status(int fg, size_t ncols) {
     (status++)->rune = (buf->crlf ? 'C' : 'N');
     (status++)->rune = (buf->expand_tabs ? 'S' : 'T');
     (status++)->rune = (buf->copy_indent ? 'I' : 'i');
+    (status++)->rune = (SearchDir < 0 ? '<' : '>');
     (status++)->rune = (buf->modified ? '*' : ' ');
     (status++)->rune = ' ';
     char* path = (buf->path ? buf->path : "*scratch*");