mirror of
https://github.com/vlang/v.git
synced 2025-09-17 00:12:26 +03:00
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185)
This commit is contained in:
parent
234fb8e2b0
commit
008aaad999
284 changed files with 2539 additions and 2572 deletions
|
@ -390,7 +390,7 @@ fn (mut cb Clipboard) start_listener() {
|
|||
fn (mut cb Clipboard) intern_atoms() {
|
||||
cb.atoms << Atom(4) // XA_ATOM
|
||||
cb.atoms << Atom(31) // XA_STRING
|
||||
for i, name in x11.atom_names {
|
||||
for i, name in atom_names {
|
||||
only_if_exists := if i == int(AtomType.utf8_string) { 1 } else { 0 }
|
||||
cb.atoms << C.XInternAtom(cb.display, &char(name.str), only_if_exists)
|
||||
if i == int(AtomType.utf8_string) && cb.atoms[i] == Atom(0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue