sources/network/rconsession.cpp

changeset 185
e83ec58cc458
parent 183
9b6a0daedfc0
child 186
9330b93d9946
equal deleted inserted replaced
184:afd63357a03d 185:e83ec58cc458
211 } 211 }
212 else if (completes.size() > 0) 212 else if (completes.size() > 0)
213 { 213 {
214 m_interface->print("Completions for '%s':\n", m_lastTabComplete.data()); 214 m_interface->print("Completions for '%s':\n", m_lastTabComplete.data());
215 215
216 for (int i : range(0, static_cast<int>(completes.size()), 8)) 216 for (std::size_t i = 0; i < completes.size(); i += 8)
217 { 217 {
218 const int end = min(i + 8, static_cast<int>(completes.size())); 218 const int end = min(i + 8, completes.size());
219 std::vector<std::string> splices = splice(completes, i, end); 219 std::vector<std::string> splices = splice(completes, i, end);
220 m_interface->print("- %s\n", join_string_list(splices, ", ").data()); 220 m_interface->print("- %s\n", join_string_list(splices, ", ").data());
221 } 221 }
222 } 222 }
223 } 223 }

mercurial