Commit 28b8b233e8dd4f998522c2d80bf596984da3e7df
Fix possible off cursor after cmdline insertions
Of text with wide characters via Ctrl-X combinations or dot
completion.
Author: xaizek
Author date (UTC): 2016-06-30 18:42
Committer name: xaizek
Committer date (UTC): 2016-06-30 18:44
Parent(s): c3c7e600d5f50a79bcdd4d1a96e84c41e3b0f3f8
Signing key: 99DC5E4DB05F6BE2
Tree: e5401f0fc35ff92ec0e78efdbde36455d0cda002
File ChangeLog changed (mode: 100644) (index 12ffe813f..6e17dcdfd) |
202 |
202 |
|
|
203 |
203 |
Fixed small memory leak on using %u/%U with :grep, :find or :locate. |
Fixed small memory leak on using %u/%U with :grep, :find or :locate. |
204 |
204 |
|
|
|
205 |
|
Fixed possible off cursor after cmdline insertions of text with wide |
|
206 |
|
characters via Ctrl-X combinations or dot completion. |
|
207 |
|
|
205 |
208 |
0.8.1 to 0.8.1a |
0.8.1 to 0.8.1a |
206 |
209 |
|
|
207 |
210 |
Added c key to menus that inserts parts of menu line into command-line. |
Added c key to menus that inserts parts of menu line into command-line. |
File src/modes/cmdline.c changed (mode: 100644) (index 0d6cec560..85c60e410) |
... |
... |
insert_str(const wchar_t str[]) |
2091 |
2091 |
wcsins(input_stat.line, str, input_stat.index + 1); |
wcsins(input_stat.line, str, input_stat.index + 1); |
2092 |
2092 |
|
|
2093 |
2093 |
input_stat.index += len; |
input_stat.index += len; |
2094 |
|
input_stat.curs_pos += len; |
|
|
2094 |
|
input_stat.curs_pos += vifm_wcswidth(str, (size_t)-1); |
2095 |
2095 |
input_stat.len += len; |
input_stat.len += len; |
2096 |
2096 |
|
|
2097 |
2097 |
return 0; |
return 0; |