about summary refs log tree commit diff stats
path: root/src/ui/inputwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-16 22:59:08 +0100
committerJames Booth <boothj5@gmail.com>2015-06-16 22:59:08 +0100
commitcfef64c7677cdf66e2b37aa0aa5728262c3bb2f6 (patch)
treef587c714ca4cd21053b4821cf151ceadff55932e /src/ui/inputwin.c
parentfb0e0659023e6483418de2a06626d640644e94d9 (diff)
downloadprofani-tty-cfef64c7677cdf66e2b37aa0aa5728262c3bb2f6.tar.gz
Pass current window to autocompleters
Diffstat (limited to 'src/ui/inputwin.c')
-rw-r--r--src/ui/inputwin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index 57814414..20c9900f 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -415,7 +415,8 @@ _inp_rl_getc(FILE *stream)
 {
     int ch = rl_getc(stream);
     if (_inp_printable(ch)) {
-        cmd_reset_autocomplete();
+        ProfWin *window = wins_get_current();
+        cmd_reset_autocomplete(window);
     }
     return ch;
 }
@@ -442,7 +443,8 @@ _inp_rl_tab_handler(int count, int key)
             rl_point = rl_end;
         }
     } else if (strncmp(rl_line_buffer, "/", 1) == 0) {
-        char *result = cmd_autocomplete(rl_line_buffer);
+        ProfWin *window = wins_get_current();
+        char *result = cmd_autocomplete(window, rl_line_buffer);
         if (result) {
             rl_replace_line(result, 0);
             rl_point = rl_end;
#fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
[colours]
bkgnd=yellow
titlebar=red
titlebar.text=black
titlebar.brackets=blue
titlebar.unencrypted=black
titlebar.encrypted=white
titlebar.untrusted=white
titlebar.trusted=green
titlebar.online=white
titlebar.offline=black
titlebar.away=white
titlebar.chat=white
titlebar.dnd=black
titlebar.xa=white
statusbar=green
statusbar.text=black
statusbar.brackets=blue
statusbar.active=white
statusbar.new=white
main.text=black
main.text.me=black
main.text.them=green
main.splash=blue
main.time=blue
input.text=black
subscribed=blue
unsubscribed=white
otr.started.trusted=green
otr.started.untrusted=white
otr.ended=red
otr.trusted=green
otr.untrusted=white
online=blue
away=white
chat=blue
dnd=white
xa=white
offline=white
incoming=blue
typing=black
gone=green
error=red
roominfo=blue
roommention=blue
me=black
them=black
roster.header=black
occupants.header=black
receipt.sent=red