Skip to content

Commit 932c288

Browse files
committed
Use std::format
1 parent 7932dca commit 932c288

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Util/util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "util.hpp"
22

33
#include <cstdlib>
4+
#include <format>
45
#include <iostream>
56
#include <pwd.h>
67
#include <unistd.h>
@@ -28,6 +29,6 @@ std::string pwd() {
2829
}
2930

3031
std::string print_osc8_link(const std::string &url, const std::string &text) {
31-
return "\e]8;;" + url + "\e\\" + text + "\e]8;;\e\\";
32+
return std::format("\e]8;;{}\e\\{}\e]8;;\e\\", url, text);
3233
}
3334
}

0 commit comments

Comments
 (0)