Compare commits
No commits in common. "ba86961ba52cd0b1809c82550b218b9738cc6564" and "6bd8c1db2fa84b414db73cfde842dfb31b039913" have entirely different histories.
ba86961ba5
...
6bd8c1db2f
@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required (VERSION 3.0)
|
cmake_minimum_required (VERSION 3.0)
|
||||||
project (nncmpp VERSION 1.1.1 LANGUAGES C)
|
project (nncmpp VERSION 1.1.0 LANGUAGES C)
|
||||||
|
|
||||||
# Moar warnings
|
# Moar warnings
|
||||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
7
NEWS
7
NEWS
@ -1,10 +1,3 @@
|
|||||||
1.1.1 (2021-11-04)
|
|
||||||
|
|
||||||
* Terminal focus in/out events no longer ring the terminall bell
|
|
||||||
|
|
||||||
* Made mouse work in non-rxvt terminals with recent xterm terminfo
|
|
||||||
|
|
||||||
|
|
||||||
1.1.0 (2021-10-21)
|
1.1.0 (2021-10-21)
|
||||||
|
|
||||||
* Now requesting and processing terminal de/focus events,
|
* Now requesting and processing terminal de/focus events,
|
||||||
|
8
nncmpp.c
8
nncmpp.c
@ -2586,12 +2586,10 @@ app_init_bindings (const char *keymap,
|
|||||||
static bool
|
static bool
|
||||||
app_process_termo_event (termo_key_t *event)
|
app_process_termo_event (termo_key_t *event)
|
||||||
{
|
{
|
||||||
bool handled = false;
|
if (event->type == TERMO_TYPE_FOCUS)
|
||||||
if ((handled = event->type == TERMO_TYPE_FOCUS))
|
|
||||||
{
|
{
|
||||||
g.focused = !!event->code.focused;
|
g.focused = !!event->code.focused;
|
||||||
app_invalidate ();
|
app_invalidate ();
|
||||||
// Senseless fall-through
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct binding dummy = { *event, 0, 0 }, *binding;
|
struct binding dummy = { *event, 0, 0 }, *binding;
|
||||||
@ -2601,7 +2599,7 @@ app_process_termo_event (termo_key_t *event)
|
|||||||
sizeof *binding, app_binding_cmp)))
|
sizeof *binding, app_binding_cmp)))
|
||||||
return app_editor_process_action (binding->action);
|
return app_editor_process_action (binding->action);
|
||||||
if (event->type != TERMO_TYPE_KEY || event->modifiers != 0)
|
if (event->type != TERMO_TYPE_KEY || event->modifiers != 0)
|
||||||
return handled;
|
return false;
|
||||||
|
|
||||||
line_editor_insert (&g.editor, event->code.codepoint);
|
line_editor_insert (&g.editor, event->code.codepoint);
|
||||||
app_invalidate ();
|
app_invalidate ();
|
||||||
@ -2620,7 +2618,7 @@ app_process_termo_event (termo_key_t *event)
|
|||||||
if (app_goto_tab ((n == 0 ? 10 : n) - 1))
|
if (app_goto_tab ((n == 0 ? 10 : n) - 1))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return handled;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Current tab -------------------------------------------------------------
|
// --- Current tab -------------------------------------------------------------
|
||||||
|
2
termo
2
termo
@ -1 +1 @@
|
|||||||
Subproject commit 8265f075b176b33680012094aa1ced5721e55ac9
|
Subproject commit 94a77a10d87367ef33156cd68b2caf601c3f72d0
|
Loading…
x
Reference in New Issue
Block a user