diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-03-13 21:29:41 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-03-31 22:17:43 +0200 |
commit | 9c0a425e56f3c7b337c0a0276d26de2d8f38cfbf (patch) | |
tree | 8dafb69896b03aff777b87c47d650b8fc1d961d6 /crawl-ref/source/cio.h | |
parent | 1beff1240c1563c548b2ffd9ebbed6b32481c6be (diff) | |
download | crawl-ref-9c0a425e56f3c7b337c0a0276d26de2d8f38cfbf.tar.gz crawl-ref-9c0a425e56f3c7b337c0a0276d26de2d8f38cfbf.zip |
Unicode support in the line_reader, including CJK and combining.
There are sadly some redraw errors when there's line-wrapping involved,
especially if you're editing something not at the end of the buffer,
but these appear to be not regressions so I left them for now.
I am tempted to just brute-force it by redrawing the whole thing and
let ncurses optimize it...
Diffstat (limited to 'crawl-ref/source/cio.h')
-rw-r--r-- | crawl-ref/source/cio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/cio.h b/crawl-ref/source/cio.h index 48b93d3119..11322b2c6b 100644 --- a/crawl-ref/source/cio.h +++ b/crawl-ref/source/cio.h @@ -241,8 +241,9 @@ protected: void backspace(); void killword(); void kill_to_begin(); + void calc_pos(); - bool is_wordchar(int c); + bool is_wordchar(ucs_t c); protected: char *buffer; |