summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer-view.c
AgeCommit message (Collapse)Author
2009-01-18Replace invalid utf-8 bytes with U+FFFD when drawing a line.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4995 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13Remove broken and unused format to add an indent function to a line.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10Remove buggy /scrollback redraw - scrollback_save_formats.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12Revert r4964, at least one script uses ypos.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-11Remove ypos field of TEXT_BUFFER_VIEW_REC, it is used to compute the rowEmanuele Giaquinta
position where to draw a new line and if the view is at the bottom of the textbuffer, but the same information can be computed more easily by other means. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-15Handle bold/blink attributes like other attributes rather than mapping them toEmanuele Giaquinta
the eighth bit of the color. The formats KBGCRMYW and the mirc colors are now mapped to colors 8-15. fe-text translates colors 8-15 to bold/blink+0-7 if the terminal supports only 8 colors. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4909 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-08Fix r4743 change, avoid sign extension.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4875 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-21Use term_add_unichar to print ucs-4 chars.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4812 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Rename variable.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4744 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Replace usage of get_utf8_char with g_utf8_get_char_validated andEmanuele Giaquinta
factor the corresponding code into a function. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4743 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-17Remove cuix from trunk.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-31Assume width 1 for control characters in places where a non-negative width isEmanuele Giaquinta
expected. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4535 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-31Rename IS_PRINTABLE macro to unichar_isprint and move it to utf8.h.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-25Replace utf8_width with Markus Kuhn's wcwidth.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4518 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-03Add common IS_PRINTABLE macro.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4474 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-03-12When removing a line from the view also unconditionally remove any bookmark forEmanuele Giaquinta
that line rather than moving it to the next/previous line, if any. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4433 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-20UTF-8 0x80-0x9f characters weren't treated as control chars as they should haveTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4425 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-02-17Generalize window_lastlog_clear in textbuffer_view_remove_lines_by_level.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4419 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-14Set view->startline to NULL when the line to delete is the first of the viewEmanuele Giaquinta
buffer and there are no more lines in the view. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4350 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-14Revert r4343.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4349 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12Revert r4342.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4345 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12Missing update of view->startline when the line to delete is the first of theEmanuele Giaquinta
view and the first of the view buffer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4343 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-09-12Do not restore the previous view when deleting the first line of the current ↵Emanuele Giaquinta
one. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4342 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-08-08Merge of cuix back in trunknattfodd
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4309 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-11-23replace guint by gsize for the glib2 version of irssi_ssl_readValentin Batz
like it's defined in GIOFuncs for glib2 moved src/fe-text/utf8.* to src/fe-common/core changed get_utf8_char so it returns a status code and the unichar argument pointer to the value that it returned before if there were no errors, so you can check for a negative value an handle the error git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4091 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-08-05fix minor textbuffer leak, Bug 288 by TobyWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-24Fixes for Chinese multibyte characters handling and cursor movement, patchTimo Sirainen
by Wang WenRui git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3244 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-26BIG5 stuff is used only if term_type is big5Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3135 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-19BIG5 fixes by vanilla@FreeBSD.org(?)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3134 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-10GC fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-14Some changes to make doublewidth chars possibly work (or possibly horriblyTimo Sirainen
break whole utf8 support :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18External indent functions (theme_indent module) weren't working properly.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2815 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13changed log domain and changed few g_return_if_fails to g_asserts. theTimo Sirainen
domain change makes all glib warnings be printed into stderr instead of trying to print them into irssi window which most probably would just mysteriously crash. also irssi doesn't now crash if it thinks screen height is 0 :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2787 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15/SET term_type 8bit|utf8|big5 - Removed --with-big5 configure option, it'sTimo Sirainen
now included the same way as utf8, though i'm not sure if it really works but at least it should partially :) Input line is now internally using 32bit chars but it's converted to 8bit chars for external use. Text buffer supports only 8bit + utf8 for now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2448 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10It's possible to use black foreground color now.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2418 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01added some pointer casting to get rid of warnings with some compilers.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29A bit more better utf8 support, still not a good input line.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2355 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29Preliminary support for UTF8 with /SET term_utf8 ON. Input line is stillTimo Sirainen
messed up, but lines should wrap properly in text buffer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2354 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20Fixed a memory leak.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2329 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18--more-- works again, better than ever :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2066 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18Fixed the "multiple space split" fix :) It was causing crashes, strange thatTimo Sirainen
it worked in my tests.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2051 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17If line was split from multiple spaces, irssi printed the spaces in theTimo Sirainen
beginning of the next line - which wasn't good if the next line was statusbar.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2045 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15The default color for line should be ATTR_RESET, not 0 (black).Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2025 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-13Reset the terminal color before scrolling, so the scrolled area's background ↵Timo Sirainen
doesn't get non-black.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2000 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-04Still messing up with colors.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03Don't clear the window before redrawing, it's faster to do it at the sameTimo Sirainen
time window is being redrawn. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03update_cmd_color() updated colors wrong.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03Some fixes to drawing lines & handling long lines.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1958 dbcabf3a-b0e7-0310-adc4-f8d773084564