diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-12-10 14:34:57 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-12-10 14:34:57 -0300 |
commit | 9e74ba943cf9db90461890705d5b0d2428b996f0 (patch) | |
tree | 3b7b9a20c7f532dd32fa5f92b9de331403b13f3f | |
parent | 0546c40e90a58426bcf58dd1777d805d354b2e67 (diff) |
work on issue 197
-rw-r--r-- | src/cmds_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmds_edit.c b/src/cmds_edit.c index e0f91ee..5257659 100644 --- a/src/cmds_edit.c +++ b/src/cmds_edit.c @@ -513,7 +513,8 @@ int start_edit_mode(struct block * buf, char type) { linelim = 0; edits(currow, curcol, 0); linelim = -1; - (void) swprintf(inputline, BUFFERSIZE, L"%s", line); + if ((p1)->flags & is_strexpr) swprintf(inputline + wcslen(inputline), BUFFERSIZE, L"\""); + (void) swprintf(inputline + wcslen(inputline), BUFFERSIZE, L"%s", line); } inputline_pos = wcswidth(inputline, wcslen(inputline)) - 1; real_inputline_pos = wcslen(inputline) - 1; |