Tdesktop: Two dashes replaces with long dash even in code mode

Created on 19 May 2018  Â·  4Comments  Â·  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Start typing something like this
`i--` is decrement

or this

```
while (i-- > 0) {
}
```

Expected behaviour

No problem with two dashes --

Actual behaviour

Two dashes -- automatically replaces with long dash —

`i—` is decrement
```
while (i— > 0) {
}
```

And it's annoying, `cause I need press Backspace whenever I type two dashes.

P.S. Try to type:

`----------------`

and feel the pain :smirk:

Configuration

Operating system: Windows

Version of Telegram Desktop: 1.2.21 alpha

Used theme: Any

Most helpful comment

image

This issue should probably be closed now (at least 1.3.7 alpha works).

All 4 comments

522

522 is for server replacement and it normally handles double dashes between ``

Now the app replaces dashes in editbox immediately, ignoring code tags

There’s no “server replacement”, but I agree that it’s a different issue.

image

This issue should probably be closed now (at least 1.3.7 alpha works).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FunctionalHacker picture FunctionalHacker  Â·  3Comments

slowaways picture slowaways  Â·  3Comments

Yanrishatum picture Yanrishatum  Â·  3Comments

ArmeF97 picture ArmeF97  Â·  3Comments

ghost picture ghost  Â·  3Comments