From 93dc0a186e910056d3fbf250ab0b2f989dc9990e Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 9 Jul 2017 13:55:26 -0400 Subject: [PATCH] Fixed bug in tied which was disabling expand tabs and other formatting --- tide.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tide.c b/tide.c index 9f7d52e..d7430e0 100644 --- a/tide.c +++ b/tide.c @@ -582,7 +582,7 @@ bool update_needed(void) { } static void oninput(Rune rune) { - view_insert(win_view(FOCUSED), false, rune); + view_insert(win_view(FOCUSED), (CmdFD == -1), rune); if (win_getregion() == EDIT) { size_t point = win_buf(EDIT)->outpoint; size_t pos = win_view(EDIT)->selection.end; @@ -676,6 +676,8 @@ void edit_command(char** cmd) { char* shellcmd[] = { ShellCmd[0], NULL }; win_buf(EDIT)->crlf = 1; config_set_int(TabWidth, 8); + win_setlinenums(false); + win_setruler(0); CmdFD = pty_spawn(*cmd ? cmd : shellcmd); } -- 2.49.0