- Timestamp:
- Jan 11, 2008, 2:46:52 PM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- cde4a71
- Parents:
- a827529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
r830c36e rfac5463 568 568 c = g_utf8_get_char(p); 569 569 while (c) { 570 owl_editwin_process_char(e, c);570 _owl_editwin_process_char(e, c); 571 571 p = g_utf8_next_char(p); 572 572 c = g_utf8_get_char(p); … … 1075 1075 } 1076 1076 1077 void owl_editwin_post_process_char(owl_editwin *e, gunicharj)1077 void owl_editwin_post_process_char(owl_editwin *e, owl_input j) 1078 1078 { 1079 1079 /* check if we need to scroll down */ … … 1081 1081 e->topline+=e->winlines/2; 1082 1082 } 1083 if ((j ==13 || j==10) && owl_editwin_check_dotsend(e)) {1083 if ((j.ch==13 || j.ch==10) && owl_editwin_check_dotsend(e)) { 1084 1084 owl_command_editmulti_done(e); 1085 1085 return; … … 1088 1088 } 1089 1089 1090 void owl_editwin_process_char(owl_editwin *e, gunichar j) 1091 { 1092 if (j == ERR) return; 1093 if (g_unichar_iscntrl(j) && (j != 10) && (j != 13)) { 1094 return; 1095 } 1096 else { 1090 void _owl_editwin_process_char(owl_editwin *e, gunichar j) 1091 { 1092 if (!(g_unichar_iscntrl(j) && (j != 10) && (j != 13))) { 1097 1093 owl_editwin_insert_char(e, j); 1094 } 1095 } 1096 1097 1098 void owl_editwin_process_char(owl_editwin *e, owl_input j) 1099 { 1100 if (j.ch == ERR) return; 1101 /* Ignore ncurses control characters. */ 1102 if (j.ch < 0x100) { 1103 _owl_editwin_process_char(e, j.uch); 1098 1104 } 1099 1105 }
Note: See TracChangeset
for help on using the changeset viewer.