From: Michael D. Lowis Date: Sun, 9 Jul 2017 17:55:26 +0000 (-0400) Subject: Fixed bug in tied which was disabling expand tabs and other formatting X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=93dc0a186e910056d3fbf250ab0b2f989dc9990e;p=projs%2Ftide.git Fixed bug in tied which was disabling expand tabs and other formatting --- 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); }