Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
fb4ce71c
Commit
fb4ce71c
authored
6 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: correct a comment typo, and trim a few other comments
parent
7a2c851d
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/text.c
+1
-1
src/text.c
src/winio.c
+5
-7
src/winio.c
with
6 additions
and
8 deletions
+6
-8
src/text.c
View file @
fb4ce71c
...
...
@@ -2147,7 +2147,7 @@ void justify_paragraph(filestruct **line, size_t quote_len, size_t par_len)
break_pos
--
;
}
/* Now actually break the current line, and go the next. */
/* Now actually break the current line, and go
to
the next. */
null_at
(
&
(
*
line
)
->
data
,
break_pos
);
*
line
=
(
*
line
)
->
next
;
}
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
fb4ce71c
...
...
@@ -122,14 +122,14 @@ void run_macro(void)
* - Ctrl-M is Enter under ASCII, ANSI, VT100, VT220, and VT320.
* - Ctrl-Q is XON under ASCII, ANSI, VT100, VT220, and VT320.
* - Ctrl-S is XOFF under ASCII, ANSI, VT100, VT220, and VT320.
* - Ctrl-
8 (Ctrl-?)
is Delete under ASCII, ANSI, VT100, and VT220,
* - Ctrl-
?
is Delete under ASCII, ANSI, VT100, and VT220,
* but is Backspace under VT320.
*
* Note: VT220 and VT320 also generate Esc [ 3 ~ for Delete. By default,
* xterm assumes it's running on a VT320 and generates Ctrl-
8 (Ctrl-?)
* xterm assumes it's running on a VT320 and generates Ctrl-
?
* for Backspace and Esc [ 3 ~ for Delete. This causes problems for
* VT100-derived terminals such as the FreeBSD console, which expect
* Ctrl-H for Backspace and Ctrl-
8 (Ctrl-?)
for Delete, and on which the
* Ctrl-H for Backspace and Ctrl-
?
for Delete, and on which the
* VT320 sequences are translated by the keypad to KEY_DC and [nothing].
* We work around this conflict via the REBIND_DELETE flag: if it's not set,
* we assume VT320 compatibility, and if it is, we assume VT100 compatibility.
...
...
@@ -1767,13 +1767,11 @@ int get_mouseinput(int *mouse_y, int *mouse_x, bool allow_shortcuts)
return
1
;
}
else
/* Ignore presses of the fourth mouse button and presses of
* the fifth mouse buttons that aren't on the edit window or
* the statusbar. */
/* Ignore presses of the fourth and fifth mouse buttons
* that aren't on the edit window or the status bar. */
return
2
;
}
#endif
/* Ignore all other mouse events. */
return
2
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help