Lines Matching refs:cmd_buf_size
48 if (rs->cmd_buf_size != rs->last_cmd_buf_size || in readline_update()
49 memcmp(rs->cmd_buf, rs->last_cmd_buf, rs->cmd_buf_size) != 0) { in readline_update()
53 rs->cmd_buf[rs->cmd_buf_size] = '\0'; in readline_update()
62 memcpy(rs->last_cmd_buf, rs->cmd_buf, rs->cmd_buf_size); in readline_update()
63 rs->last_cmd_buf_size = rs->cmd_buf_size; in readline_update()
64 rs->last_cmd_buf_index = rs->cmd_buf_size; in readline_update()
88 rs->cmd_buf_size - rs->cmd_buf_index); in readline_insert_char()
90 rs->cmd_buf_size++; in readline_insert_char()
104 if (rs->cmd_buf_index < rs->cmd_buf_size) { in readline_forward_char()
111 if (rs->cmd_buf_index < rs->cmd_buf_size) { in readline_delete_char()
114 rs->cmd_buf_size - rs->cmd_buf_index - 1); in readline_delete_char()
115 rs->cmd_buf_size--; in readline_delete_char()
131 if (rs->cmd_buf_index == 0 || rs->cmd_buf_index > rs->cmd_buf_size) { in readline_backword()
160 rs->cmd_buf_size - rs->cmd_buf_index); in readline_backword()
161 rs->cmd_buf_size -= rs->cmd_buf_index - start; in readline_backword()
173 rs->cmd_buf_index = rs->cmd_buf_size; in readline_eol()
194 rs->cmd_buf_index = rs->cmd_buf_size = strlen(rs->cmd_buf); in readline_up_char()
210 rs->cmd_buf_index = rs->cmd_buf_size = strlen(rs->cmd_buf); in readline_down_char()
362 rs->cmd_buf[rs->cmd_buf_size] = '\0'; in readline_handle_byte()
367 rs->cmd_buf_size = 0; in readline_handle_byte()
456 rs->cmd_buf_size = 0; in readline_restart()