diff options
| author | Greg Ercolano <erco@seriss.com> | 2010-11-20 18:03:14 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2010-11-20 18:03:14 +0000 |
| commit | 430789d8bec5a667fc432b890800b9d164aa05ad (patch) | |
| tree | bf76c49ef29180836432ffdf22a8e1266484f195 /src/Fl_compose.cxx | |
| parent | 0b7e706de9301dd531f4d91b28d049420914970a (diff) | |
Fixed weird indents
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_compose.cxx')
| -rw-r--r-- | src/Fl_compose.cxx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/Fl_compose.cxx b/src/Fl_compose.cxx index f79a7ff6f..76c44f80d 100644 --- a/src/Fl_compose.cxx +++ b/src/Fl_compose.cxx @@ -55,18 +55,17 @@ int Fl::compose(int& del) { if(Fl::e_length == 0 || Fl::e_keysym == FL_Enter || Fl::e_keysym == FL_KP_Enter || Fl::e_keysym == FL_Tab || Fl::e_keysym == FL_Escape || Fl::e_state&FL_META || Fl::e_state&FL_CTRL ) { return 0; - } + } #endif if(Fl::compose_state) { del = 1; Fl::compose_state = 0; - } - else { + } else { #ifdef WIN32 // Only insert non-control characters: if (! (ascii & ~31 && ascii!=127)) { return 0; } #endif - } + } return 1; } @@ -130,15 +129,15 @@ int Fl::compose(int& del) { // see if it is either character of any pair: for (const char *p = compose_pairs; *p; p += 2) if (p[0] == ascii || p[1] == ascii) { - if (p[1] == ' ') { - int len = fl_utf8encode((p-compose_pairs)/2+0xA0, e_text); - e_text[len] = '\0'; - e_length = len; - } + if (p[1] == ' ') { + int len = fl_utf8encode((p-compose_pairs)/2+0xA0, e_text); + e_text[len] = '\0'; + e_length = len; + } - compose_state = ascii; - return 1; - } + compose_state = ascii; + return 1; + } if (e_length) { // compose key also "quotes" control characters compose_state = 0; |
