Repository navigation
Commit f89097c
Execute SQL: avoid problems with selection when there are multibyte chars
QScintilla returns selection in bytes, so we have to take into account
cases where the multibyte characters are inside the query, and also when
they are before the query. We do that by trimming after the end byte
position of the selection and replacing all the bytes previous to the
selection with a space (single-byte character)
See issue #3731.1 parent 03bbbc6 commit f89097c
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1246 | 1248 | | |
1247 | 1249 | | |
1248 | 1250 | | |
| |||
0 commit comments