- 06 Aug, 2017 1 commit
-
-
David Lawrence Ramsey authored
Match three variable names in the prototypes to the changd ones in their functions in utils.c.
-
- 29 Jul, 2017 1 commit
-
-
Rishabh Dave authored
Include the shortcut for 'Uncut' into most menus, and add an uncut function for the status bar, so that it becomes possible to paste the first line of the cutbuffer at any text-input prompt. This fulfills https://savannah.gnu.org/bugs/?48501 . Requested-by:
Benno Schulenberg <bensberg@telfort.nl> Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com>
-
- 24 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
Commit 28beb3f9 added the 'forreal' parameter to prevent spotlight() from placing the cursor wrongly due to an invalid placewewant. However, since the variable-width softwrap overhaul (specifically, since commit 8490f4ac), place_the_cursor() no longer checks placewewant, so the parameter is no longer needed. Furthermore, dropping 'forreal' and thus always setting current_y won't affect the operation of spotlight(), since the only functions that use spotlight() (do_replace_loop() and do_int_spell_fix()) both call edit_refresh() beforehand, which means that current_y will already have been set to the value it will be set to again.
-
- 12 Jul, 2017 2 commits
-
-
David Lawrence Ramsey authored
Since all indentation and unindentation is by a tab, or by a tab's worth of spaces, use tabsize directly.
-
David Lawrence Ramsey authored
This is the first step toward splitting them into two dedicated functions, instead of letting do_indent() handle both cases.
-
- 09 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 07 Jul, 2017 6 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And then elide the function entirely as it's called just once.
-
David Lawrence Ramsey authored
spotlight() now displays softwrapped lines chunk by chunk instead of all at once. Since softwrapped lines are no longer of constant width, the latter approach would fail if softwrapping breaks the spotlighted text. Instead of taking a string, spotlight() now takes the starting and ending columns of that string. Also, its handling of softwrapped lines is now split off into a separate function, spotlight_softwrapped().
-
David Lawrence Ramsey authored
Add the new function actual_last_column() to accomplish this.
-
David Lawrence Ramsey authored
get_chunk_row() replaces the formula "column / editwincols". get_chunk_leftedge() replaces "(column / editwincols) * editwincols". get_last_chunk_row() replaces "strlenpt() / editwincols". get_last_chunk_leftedge() replaces "(strlenpt() / editwincols) * editwincols". This prepares us for any changes in those formulas, and for more such functions later.
-
David Lawrence Ramsey authored
The new function find_softwrap_breakpoint() returns the column number of the last position in screen range where we can wrap the given text without breaking a two-column character in half (as was done until now). The returned column number is the leftedge of the next softwrapped chunk. If the end of the text is reached while searching for a wrapping point, the parameter end_of_line is set to TRUE. The new function get_chunk() uses find_softwrap_breakpoint() to find the row and leftedge corresponding to a given column of a given line.
-
- 06 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 04 Jun, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 29 May, 2017 1 commit
-
-
Benno Schulenberg authored
Achieve this by making the suppression flag global, so that we can just reset it instead of making an improper call of do_cursorpos(). This fixes the secondary part of https://savannah.gnu.org/bugs/?51134.
-
- 11 May, 2017 1 commit
-
-
Benno Schulenberg authored
When spotlighting the string to be replaced, placewewant isn't valid, so tell place_the_cursor() to ignore its value to avoid the cursor getting mistakenly placed at the beginning of the next row. This fixes https://savannah.gnu.org/bugs/?50997 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 09 May, 2017 2 commits
-
-
Benno Schulenberg authored
Also, allow rebinding the word and block jumping functions in the tiny version when nanorc files are reenabled.
-
Benno Schulenberg authored
-
- 08 May, 2017 4 commits
-
-
Benno Schulenberg authored
Also, allow Ctrl+Left/Right with --enable-tiny --enable-browser.
-
Benno Schulenberg authored
Also remove a superfluous check for 'do_replace' -- it never gets bound in the Search/Replace menus.
-
Benno Schulenberg authored
When configured with --enable-tiny --enable-multibuffer, /do/ include the new-buffer toggle in the Read-File menu.
-
Benno Schulenberg authored
-
- 05 May, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 03 May, 2017 1 commit
-
-
Benno Schulenberg authored
And hide the cursor again as soon as the user scrolls. Achieve this through making the 'didfind' variable global. Also, remove a superfluous call of wnoutrefresh(), as bottombars() already does that. This fixes https://savannah.gnu.org/bugs/?50918 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 01 May, 2017 4 commits
-
-
Benno Schulenberg authored
Also, trim some comments and avoid an unused-variable warning.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, reshuffle two initializations to go sit with the other ones.
-
Benno Schulenberg authored
Things have morphed over time and display_buffer() no longer actually displays the buffer -- it just displays the title bar, precalculates the multiline color info, and schedules a refresh of the edit window.
-
- 30 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
This avoids https://savannah.gnu.org/bugs/?49912 while at the same time avoiding to draw the edit window twice in a row -- the first drawing would use a wrong margin, which results in a visible and irritating shift left or right of the content upon the second drawing. This fixes https://savannah.gnu.org/bugs/?50877.
-
- 28 Apr, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And one-letter variables I cannot "see" -- they are too small.
-
Benno Schulenberg authored
An iterator should not be called "start_col", because it is only the starting column at the very beginning. Also, start_col (after the rename) can never be /larger/ than column.
-
- 25 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
And in the process transform the token DISABLE_HELP to ENABLE_HELP.
-
Rishabh Dave authored
Allow the user to search in a help text with ^W and M-W. Achieve this by not writing the help text directly to the screen but first writing it to a temporary file and then opening this file in a new buffer, and treating it specially: the normal file-reading feedback is suppressed, the titlebar shows the headline of the text, the cursor is hidden, and the menu is limited to just the up and down movements and searching. This fulfills https://savannah.gnu.org/bugs/?28994 . Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com>
-
- 17 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Because nothing gets reset to zero or to some initial value.
-
- 09 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
These functions are used only in the file in which they are declared, and they are declared before they are used.
-
Benno Schulenberg authored
The interval 2013-2017 for the Free Software Foundation is valid because in those years there were releases with changes by either Chris or David, and the GNU maintainers guide advises to mention a new year in all files of a package, not just in the ones that actually changed, and be done with it for the rest of the year.
-
- 06 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
On some terminal emulators, Ctrl+Home and Ctrl+End produce special keycodes, distinct from plain Home and End. Make the users of those emulators (and of the Linux console) glad by making ^Home and ^End do the obvious thing, and the combinations with Shift too.
-