mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
added format_get_length() for getting length of text part in a format
string. gui_printtext() now works like printtext_string() so %s won't accidentally crash it. /SET prompt can now have %formats. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1273 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c8893c61ee
commit
4718edf055
8 changed files with 44 additions and 27 deletions
|
|
@ -239,16 +239,12 @@ void gui_window_line_remove(WINDOW_REC *window, LINE_REC *line, int redraw)
|
|||
gui_window_redraw(window);
|
||||
}
|
||||
|
||||
void gui_printtext(int xpos, int ypos, const char *str, ...)
|
||||
void gui_printtext(int xpos, int ypos, const char *str)
|
||||
{
|
||||
va_list va;
|
||||
|
||||
next_xpos = xpos;
|
||||
next_ypos = ypos;
|
||||
|
||||
va_start(va, str);
|
||||
printtext_gui_args(str, va);
|
||||
va_end(va);
|
||||
printtext_gui(str);
|
||||
|
||||
next_xpos = next_ypos = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue