diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-01-31 10:47:14 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-01-31 10:47:14 +0200 |
commit | 312809f8838911dabff84d7ad3ccf341307d2b19 (patch) | |
tree | dda7c602c749573d5382b3b87f3943683f4ac855 /gdb/tui/tui-io.h | |
parent | b6577aab8a7e97470c5ff96000f3d0dbdb2c1ee1 (diff) | |
download | gdb-312809f8838911dabff84d7ad3ccf341307d2b19.zip gdb-312809f8838911dabff84d7ad3ccf341307d2b19.tar.gz gdb-312809f8838911dabff84d7ad3ccf341307d2b19.tar.bz2 |
Make sure TABs are expanded in TUI windows on MS-Windows.
gdb/
2015-01-31 Eli Zaretskii <eliz@gnu.org>
* tui/tui-io.c (tui_expand_tabs): New function.
(tui_puts, tui_redisplay_readline): Expand TABs into the
appropriate number of spaces.
* tui/tui-regs.c: Include tui-io.h.
(tui_register_format): Call tui_expand_tabs to expand TABs into
the appropriate number of spaces.
* tui/tui-io.h: Add prototype for tui_expand_tabs.
Diffstat (limited to 'gdb/tui/tui-io.h')
-rw-r--r-- | gdb/tui/tui-io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/tui/tui-io.h b/gdb/tui/tui-io.h index 8f96cfe..3154eee 100644 --- a/gdb/tui/tui-io.h +++ b/gdb/tui/tui-io.h @@ -41,6 +41,9 @@ extern int tui_getc (FILE *); changed the edited text. */ extern void tui_redisplay_readline (void); +/* Expand TABs into spaces. */ +extern char *tui_expand_tabs (const char *, int); + extern struct ui_out *tui_out; extern struct ui_out *tui_old_uiout; |