--------------------------------------------------------------------------- | Facility : libnform | Function : static int FE_Insert_Character(FORM * form) | | Description : Insert blank character at the cursor position | | Return Values : E_OK | E_REQUEST_DENIED +--------------------------------------------------------------------------*/
| 2299 | } |
| 2300 | |
| 2301 | /*--------------------------------------------------------------------------- |
| 2302 | | Facility : libnform |
| 2303 | | Function : static int FE_Insert_Character(FORM * form) |
| 2304 | | |
| 2305 | | Description : Insert blank character at the cursor position |
| 2306 | | |
| 2307 | | Return Values : E_OK |
| 2308 | | E_REQUEST_DENIED |
| 2309 | +--------------------------------------------------------------------------*/ |
| 2310 | static int FE_Insert_Character(FORM * form) |
| 2311 | { |
| 2312 | FIELD *field = form->current; |
| 2313 | int result = E_REQUEST_DENIED; |
| 2314 | |
| 2315 | if (Check_Char(field->type,(int)C_BLANK,(TypeArgument *)(field->arg))) |
| 2316 | { |
| 2317 | bool There_Is_Room = Is_There_Room_For_A_Char_In_Line(form); |
| 2318 | |
| 2319 | if (There_Is_Room || |
| 2320 | ((Single_Line_Field(field) && Growable(field)))) |
| 2321 | { |
| 2322 | if (!There_Is_Room && !Field_Grown(field,1)) |
| 2323 | result = E_SYSTEM_ERROR; |
| 2324 | else |
| 2325 | { |
| 2326 | winsch(form->w,(chtype)C_BLANK); |
nothing calls this directly
no test coverage detected
searching dependent graphs…