]> git.mdlowis.com Git - projs/tide.git/commitdiff
Fixed bug in tied which was disabling expand tabs and other formatting
authorMichael D. Lowis <mike@mdlowis.com>
Sun, 9 Jul 2017 17:55:26 +0000 (13:55 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Sun, 9 Jul 2017 17:55:26 +0000 (13:55 -0400)
tide.c

diff --git a/tide.c b/tide.c
index 9f7d52e296ebaeda33e42cffc196fd931d4b670c..d7430e04efb24bbac861e50dd2a417a922d1a595 100644 (file)
--- 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);
 }