Commit 90b07fc2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in do_tab(), make sure that we insert the correct number of spaces if

the TABS_TO_SPACES flag is set and placewewant is greater than the
current column position of the cursor


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3041 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
...@@ -315,6 +315,10 @@ CVS code - ...@@ -315,6 +315,10 @@ CVS code -
get_history_completion() get_history_completion()
- Make parameters const where possible. (DLR) - Make parameters const where possible. (DLR)
- text.c: - text.c:
do_tab()
- Make sure that we insert the correct number of spaces if the
TABS_TO_SPACES flag is set and placewewant is greater than the
current column position of the cursor. (DLR)
do_enter() do_enter()
- Don't update the edit window until we set placewewant. (DLR) - Don't update the edit window until we set placewewant. (DLR)
break_line() break_line()
......
...@@ -163,7 +163,7 @@ void do_tab(void) ...@@ -163,7 +163,7 @@ void do_tab(void)
#ifndef NANO_SMALL #ifndef NANO_SMALL
if (ISSET(TABS_TO_SPACES)) { if (ISSET(TABS_TO_SPACES)) {
char *output; char *output;
size_t output_len = 0, new_pww = openfile->placewewant; size_t output_len = 0, new_pww = xplustabs();
do { do {
new_pww++; new_pww++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment