Cleanup
This commit is contained in:
@@ -35,8 +35,8 @@ struct VisualIterator {
|
||||
std::stack<std::pair<Coord, Coord>> prev_stack;
|
||||
|
||||
VisualIterator(Knot *root, Coord pos, uint32_t width)
|
||||
: it(begin_l_iter(root, pos.row)), offset(pos.col),
|
||||
line_index(pos.row - 1), render_width(width) {}
|
||||
: it(begin_l_iter(root, pos.row)), line_index(pos.row - 1),
|
||||
offset(pos.col), render_width(width) {}
|
||||
|
||||
std::pair<Coord, Coord> prev() {
|
||||
if (!it)
|
||||
|
||||
@@ -208,7 +208,7 @@ struct LSPInstance {
|
||||
if (pfd.revents & POLLIN) {
|
||||
json exit_msg = {{"jsonrpc", "2.0"}, {"method", "exit"}};
|
||||
send_raw(exit_msg);
|
||||
int waited = 0;
|
||||
uint32_t waited = 0;
|
||||
while (waited < timeout) {
|
||||
int status;
|
||||
pid_t res = waitpid(pid, &status, WNOHANG);
|
||||
|
||||
@@ -138,6 +138,7 @@ std::string percent_encode(const std::string &s);
|
||||
std::string percent_decode(const std::string &s);
|
||||
uint32_t count_clusters(const char *line, size_t len, size_t from, size_t to);
|
||||
std::string trim(const std::string &s);
|
||||
std::string strip_newlines(const std::string &s);
|
||||
std::string substitute_fence(const std::string &documentation,
|
||||
const std::string &lang);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user